Define NO_THREADS in when building without threads

Previously NOTHREADS was being defined but the code
in mutex.h checks for NO_THREADS.
This commit is contained in:
Sam Clegg 2016-01-29 16:09:43 -08:00
parent 03bebcb065
commit b572a72daa

View file

@ -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)