From: Ivan Maidanski Date: Wed, 25 Jan 2017 20:52:53 +0000 (+0300) Subject: Fix GCJ support in CMake build script X-Git-Tag: v8.0.0~947 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=33185fc0eb0a89fa6961be98e41590af3aca8fbb;p=gc Fix GCJ support in CMake build script * CMakeLists.txt [enable_gcj_support] (SRC): Add gcj_mlc.c. * CMakeLists.txt [enable_gcj_support] (ADD_DEFINITIONS): Add -DGC_ENABLE_SUSPEND_THREAD only if enable_threads. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b33ab2f..0539c397 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -205,7 +205,10 @@ ENDIF(CMAKE_USE_WIN32_THREADS_INIT) OPTION(enable_gcj_support "Support for gcj" NO) IF(enable_gcj_support) ADD_DEFINITIONS("-DGC_GCJ_SUPPORT") - ADD_DEFINITIONS("-DGC_ENABLE_SUSPEND_THREAD") + IF(enable_threads) + ADD_DEFINITIONS("-DGC_ENABLE_SUSPEND_THREAD") + ENDIF(enable_threads) + SET(SRC ${SRC} gcj_mlc.c) ENDIF(enable_gcj_support)