Skip to content
Browse files

add -pthread to cxxflags to solve linker errors on some distros, than…

…ks tims
  • Loading branch information...
1 parent 80d4be5 commit 2fed613cced747f55f26db1eeeacc1dceb1cb5e5 @RJ committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 CMakeLists.txt
View
4 CMakeLists.txt
@@ -8,6 +8,8 @@ SET(SRC "${F2F_PATH}/src")
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${F2F_PATH}/bin")
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${F2F_PATH}/lib")
+set(CMAKE_CXX_FLAGS "-pthread")
+
# binaries get installed here
SET(CMAKE_INSTALL_PREFIX "/usr/local/")
@@ -42,7 +44,7 @@ ENDIF(WIN32)
IF(NOT WIN32)
# removes operators like "and", "or" and "not"
- ADD_DEFINITIONS(-Wall -ggdb)
+ #ADD_DEFINITIONS(-Wall -ggdb)
ADD_DEFINITIONS(-g )
ADD_DEFINITIONS(-fno-operator-names)
ADD_DEFINITIONS(-fPIC)

0 comments on commit 2fed613

Please sign in to comment.
Something went wrong with that request. Please try again.