Mercurial > projects > ldc
diff CMakeLists.txt @ 883:b52d5de7783f
GC defines and linkage changes.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Thu, 08 Jan 2009 18:20:02 +0100 |
parents | 82ad6c0c601c |
children | b5e1797e9557 |
line wrap: on
line diff
--- a/CMakeLists.txt Thu Jan 08 16:49:04 2009 +0100 +++ b/CMakeLists.txt Thu Jan 08 18:20:02 2009 +0100 @@ -143,7 +143,7 @@ endif(UNIX) if(USE_BOEHM_GC) - add_definitions(-DUSE_BOEHM_GC) + add_definitions(-DREDIRECT_MALLOC=GC_malloc -DIGNORE_FREE) endif(USE_BOEHM_GC) if(GENERATE_OFFTI) @@ -188,7 +188,7 @@ endif(WIN32) if(USE_BOEHM_GC) - target_link_libraries(${LDC_EXE} gc) + target_link_libraries(${LDC_EXE} ${PROJECT_SOURCE_DIR}/libgc.a) endif(USE_BOEHM_GC) get_target_property(LDC_LOC ${LDC_EXE} LOCATION)