Skip to content
Permalink
Browse files

FreeBSD has thread_local support

  • Loading branch information
nyalldawson committed Nov 7, 2017
1 parent 265be41 commit 5ebd3983fd472f550d419be4de84b995113ea474
Showing with 3 additions and 3 deletions.
  1. +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.")

0 comments on commit 5ebd398

Please sign in to comment.
You can’t perform that action at this time.