Skip to content

Commit 62bc9a0

Browse files
author
Kent Knox
committed
Merge pull request #37 from andreygursky/cmake-fix-1
Adding missing '-pthread' to the C/C++ compiler flags, since the library...
2 parents bf75c1d + 1572a59 commit 62bc9a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ elseif( CMAKE_COMPILER_IS_GNUCXX )
204204
# we only want c++0x if we're using gcc 4.5.2
205205
set( CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS}" )
206206
endif()
207+
208+
set( CMAKE_CXX_FLAGS "-pthread ${CMAKE_CXX_FLAGS}" )
209+
set( CMAKE_C_FLAGS "-pthread ${CMAKE_C_FLAGS}" )
207210

208211
if( BUILD64 )
209212
set( CMAKE_CXX_FLAGS "-m64 ${CMAKE_CXX_FLAGS}" )

0 commit comments

Comments
 (0)