Skip to content

Commit

Permalink
use -pthread option rather than CMake script
Browse files Browse the repository at this point in the history
  • Loading branch information
Neverlord committed Mar 21, 2013
1 parent b3963c0 commit 8b6f6cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 60 deletions.
10 changes: 6 additions & 4 deletions CMakeLists.txt
Expand Up @@ -162,11 +162,13 @@ if (BOOST_ROOT)
set(Boost_NO_SYSTEM_PATHS true)
endif ()

find_package(PTHREAD REQUIRED)

set(INCLUDE_DIRS . ${PTHREAD_INCLUDE_DIR})
set(INCLUDE_DIRS .)
set(LD_DIRS)
set(LD_FLAGS ${CMAKE_LD_LIBS} ${PTHREAD_LIBRARIES})
set(LD_FLAGS ${CMAKE_LD_LIBS})

if (UNIX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
endif (UNIX)

if (ENABLE_OPENCL)
find_package(OPENCL REQUIRED)
Expand Down
56 changes: 0 additions & 56 deletions FindPTHREAD.cmake

This file was deleted.

0 comments on commit 8b6f6cb

Please sign in to comment.