Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
FreeBSD has thread_local support
- Loading branch information
Showing
with
3 additions
and
3 deletions.
-
+3
−3
CMakeLists.txt
|
@@ -145,7 +145,7 @@ IF(WITH_CORE) |
|
|
SET (WITH_THREAD_LOCAL TRUE CACHE BOOL "Determines whether std::thread_local should be used") |
|
|
MARK_AS_ADVANCED(WITH_THREAD_LOCAL) |
|
|
|
|
|
IF (MINGW OR CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" OR CMAKE_SYSTEM_NAME STREQUAL "OpenBSD") |
|
|
IF (MINGW OR CMAKE_SYSTEM_NAME STREQUAL "OpenBSD") |
|
|
# MingW has broken support for thread_local, so force disabling it |
|
|
# see |
|
|
# https://sourceforge.net/p/mingw-w64/bugs/445/ |
|
@@ -154,11 +154,11 @@ IF(WITH_CORE) |
|
|
|
|
|
# also OpenBSD has no thread_local support, see https://issues.qgis.org/issues/17351 |
|
|
|
|
|
ELSE (MINGW OR CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" OR CMAKE_SYSTEM_NAME STREQUAL "OpenBSD") |
|
|
ELSE (MINGW OR CMAKE_SYSTEM_NAME STREQUAL "OpenBSD") |
|
|
IF (WITH_THREAD_LOCAL) |
|
|
SET (USE_THREAD_LOCAL TRUE) # used in qgsconfig.h |
|
|
ENDIF (WITH_THREAD_LOCAL) |
|
|
ENDIF (MINGW OR CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" OR CMAKE_SYSTEM_NAME STREQUAL "OpenBSD") |
|
|
ENDIF (MINGW OR CMAKE_SYSTEM_NAME STREQUAL "OpenBSD") |
|
|
|
|
|
# Compile flag. Make it possible to turn it off. |
|
|
SET (PEDANTIC TRUE CACHE BOOL "Determines if we should compile in pedantic mode.") |
|
|