summaryrefslogtreecommitdiff
path: root/cmake/os
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/os')
-rw-r--r--cmake/os/SunOS.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/os/SunOS.cmake b/cmake/os/SunOS.cmake
index 84ac64d8af3..e932e6c2b74 100644
--- a/cmake/os/SunOS.cmake
+++ b/cmake/os/SunOS.cmake
@@ -30,7 +30,7 @@ SET(LIBM m)
# CMake defined -lthread as thread flag. This crashes in dlopen
# when trying to load plugins workaround with -lpthread
-SET(CMAKE_THREADS_LIBS_INIT -lpthread CACHE INTERNAL "")
+SET(CMAKE_THREADS_LIBS_INIT -lpthread CACHE INTERNAL "" FORCE)
# Solaris specific large page support
CHECK_SYMBOL_EXISTS(MHA_MAPSIZE_VA sys/mman.h HAVE_DECL_MHA_MAPSIZE_VA)