diff options
author | Andreas Schuh <andreas.schuh.84@gmail.com> | 2013-08-01 02:04:37 +0100 |
---|---|---|
committer | Andreas Schuh <andreas.schuh.84@gmail.com> | 2013-08-01 02:04:37 +0100 |
commit | 7abcbdcbbd095fd6ee1d19bb012ff3f4fc7c1bdf (patch) | |
tree | 2b9869f3ebaa7b94539e37c50c818f4c3503fb06 | |
parent | ac3cb02be83c5257e46b3fda5686a8446c04d576 (diff) | |
download | gflags-7abcbdcbbd095fd6ee1d19bb012ff3f4fc7c1bdf.tar.gz gflags-7abcbdcbbd095fd6ee1d19bb012ff3f4fc7c1bdf.tar.bz2 gflags-7abcbdcbbd095fd6ee1d19bb012ff3f4fc7c1bdf.zip |
Add gflags library which is built with NO_THREADS definition.
-rw-r--r-- | CMakeLists.txt | 5 | ||||
-rw-r--r-- | 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 |