# HG changeset patch # User SokoL_SD # Date 1244396585 0 # Node ID 825ac6364d2f40148a0bea33719141967be038f0 # Parent cbdfc92eac7f9d1992ed21f3ec06c8c2475b5639 CMake: fix debug flags for ldc diff -r cbdfc92eac7f -r 825ac6364d2f cmake/FindD.cmake --- a/cmake/FindD.cmake Sun Jun 07 15:31:10 2009 +0000 +++ b/cmake/FindD.cmake Sun Jun 07 17:43:05 2009 +0000 @@ -72,15 +72,18 @@ ## Specifics flags for build configurations. ## TODO: Add another targets. set(D_RELEASE_FLAGS -O -release) +set(D_DEBUG_FLAGS -g ) if(D_IS_LLVM) set(D_RELEASE_FLAGS ${D_RELEASE_FLAGS} -enable-inlining) + set(D_DEBUG_FLAGS ${D_DEBUG_FLAGS} -d-debug) else(D_IS_LLVM) set(D_RELEASE_FLAGS ${D_RELEASE_FLAGS} -inline) + set(D_DEBUG_FLAGS ${D_DEBUG_FLAGS} -debug) endif(D_IS_LLVM) if(CMAKE_HOST_WIN32) set(D_RELEASE_FLAGS ${D_RELEASE_FLAGS} -L/subsystem:windows) endif(CMAKE_HOST_WIN32) -set(D_DEBUG_FLAGS -g -gc -debug) + ## Settings. if(CMAKE_HOST_WIN32)