Skip to content

Commit 4ccc595

Browse files
committed
Fix link errors due to missing -pthread on Linux.
1 parent 268417d commit 4ccc595

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/BuildSettings.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ if(${MSVC})
55
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} /debug")
66
elseif(${UNIX})
77
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
8-
if(NOT ${CYGWIN}) # Don't specify -pthread on Cygwin
8+
if(${CYGWIN}) # Don't specify -pthread on Cygwin
9+
else()
910
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
1011
endif()
1112
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -g")

0 commit comments

Comments
 (0)