From 33185fc0eb0a89fa6961be98e41590af3aca8fbb Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 25 Jan 2017 23:52:53 +0300 Subject: [PATCH] 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. --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.40.0