From 7abcbdcbbd095fd6ee1d19bb012ff3f4fc7c1bdf Mon Sep 17 00:00:00 2001 From: Andreas Schuh Date: Thu, 1 Aug 2013 02:04:37 +0100 Subject: Add gflags library which is built with NO_THREADS definition. --- CMakeLists.txt | 5 ++++- test/CMakeLists.txt | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 84a0818..8a86613 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -132,7 +132,10 @@ endif () include_directories ("${PROJECT_SOURCE_DIR}/src") include_directories ("${PROJECT_BINARY_DIR}/include") include_directories ("${PROJECT_BINARY_DIR}/include/${GFLAGS_NAMESPACE}") -add_library (gflags ${GFLAGS_SRCS}) + +add_library (gflags ${GFLAGS_SRCS}) +add_library (gflags_nothreads ${GFLAGS_SRCS}) +set_target_properties (gflags_nothreads PROPERTIES COMPILE_DEFINITIONS NO_THREADS) # ---------------------------------------------------------------------------- # testing diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index a2d0411..3bd3dfe 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -11,7 +11,7 @@ set (TEMPDIR "${PROJECT_BINARY_DIR}/Testing/Temporary") # ---------------------------------------------------------------------------- # common include directories and link libraries include_directories ("${CMAKE_CURRENT_SOURCE_DIR}") -link_libraries (gflags) +link_libraries (gflags_nothreads) # ---------------------------------------------------------------------------- # test executables -- cgit v1.2.3