mirror of
https://github.com/gflags/gflags.git
synced 2025-04-05 05:25:04 +00:00
Merge pull request #131 from sbc100/no_threads
Define NO_THREADS when building without threads
This commit is contained in:
commit
f9fa30506c
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ foreach (TYPE IN ITEMS STATIC SHARED)
|
|||
PRIVATE "${PROJECT_SOURCE_DIR}/src;${PROJECT_BINARY_DIR}/include/${GFLAGS_INCLUDE_DIR}"
|
||||
)
|
||||
if (opts MATCHES "nothreads")
|
||||
set (defines "GFLAGS_IS_A_DLL=${GFLAGS_IS_A_DLL};NOTHREADS")
|
||||
set (defines "GFLAGS_IS_A_DLL=${GFLAGS_IS_A_DLL};NO_THREADS")
|
||||
else ()
|
||||
set (defines "GFLAGS_IS_A_DLL=${GFLAGS_IS_A_DLL}")
|
||||
if (CMAKE_USE_PTHREADS_INIT)
|
||||
|
|
Loading…
Add table
Reference in a new issue