(fix of commit
17885ab0b)
Issue #281 (bdwgc).
* CMakeLists.txt [enable_cplusplus] (SRC): Add gc_cpp.cc after SRC
overridden to extra/gc.c (not before) if enable_single_obj_compilation.
# MESSAGE("Parallel mark requires enable_threads ON" )
#ENDIF(Threads_FOUND)
-if (enable_cplusplus)
- set(SRC ${SRC} gc_cpp.cc)
-endif()
-
set(_HOST ${CMAKE_HOST_SYSTEM_PROCESSOR}--${CMAKE_SYSTEM})
#FIXME missing the vendor field.
string(TOLOWER ${_HOST} HOST)
endif(CMAKE_USE_PTHREADS_INIT)
endif()
+if (enable_cplusplus)
+ set(SRC ${SRC} gc_cpp.cc)
+endif()
+
add_library(gc-lib STATIC ${SRC})
set_target_properties(gc-lib PROPERTIES
COMPILE_DEFINITIONS GC_NOT_DLL)