Mercurial > projects > qtd
comparison cmake/FindD.cmake @ 139:825ac6364d2f
CMake: fix debug flags for ldc
author | SokoL_SD |
---|---|
date | Sun, 07 Jun 2009 17:43:05 +0000 |
parents | a860544c5ee8 |
children | 52da31f967f0 |
comparison
equal
deleted
inserted
replaced
138:cbdfc92eac7f | 139:825ac6364d2f |
---|---|
70 endif(NOT ONE_BUILD_COMMAND) | 70 endif(NOT ONE_BUILD_COMMAND) |
71 | 71 |
72 ## Specifics flags for build configurations. | 72 ## Specifics flags for build configurations. |
73 ## TODO: Add another targets. | 73 ## TODO: Add another targets. |
74 set(D_RELEASE_FLAGS -O -release) | 74 set(D_RELEASE_FLAGS -O -release) |
75 set(D_DEBUG_FLAGS -g ) | |
75 if(D_IS_LLVM) | 76 if(D_IS_LLVM) |
76 set(D_RELEASE_FLAGS ${D_RELEASE_FLAGS} -enable-inlining) | 77 set(D_RELEASE_FLAGS ${D_RELEASE_FLAGS} -enable-inlining) |
78 set(D_DEBUG_FLAGS ${D_DEBUG_FLAGS} -d-debug) | |
77 else(D_IS_LLVM) | 79 else(D_IS_LLVM) |
78 set(D_RELEASE_FLAGS ${D_RELEASE_FLAGS} -inline) | 80 set(D_RELEASE_FLAGS ${D_RELEASE_FLAGS} -inline) |
81 set(D_DEBUG_FLAGS ${D_DEBUG_FLAGS} -debug) | |
79 endif(D_IS_LLVM) | 82 endif(D_IS_LLVM) |
80 if(CMAKE_HOST_WIN32) | 83 if(CMAKE_HOST_WIN32) |
81 set(D_RELEASE_FLAGS ${D_RELEASE_FLAGS} -L/subsystem:windows) | 84 set(D_RELEASE_FLAGS ${D_RELEASE_FLAGS} -L/subsystem:windows) |
82 endif(CMAKE_HOST_WIN32) | 85 endif(CMAKE_HOST_WIN32) |
83 set(D_DEBUG_FLAGS -g -gc -debug) | 86 |
84 | 87 |
85 ## Settings. | 88 ## Settings. |
86 if(CMAKE_HOST_WIN32) | 89 if(CMAKE_HOST_WIN32) |
87 set(D_OBJECT_SUFFIX .obj) | 90 set(D_OBJECT_SUFFIX .obj) |
88 if(D_IS_MARS) | 91 if(D_IS_MARS) |