Better finding pthread library.
In some case it was found for me in C:\Program Files\Supertuxkart 0.8.1
This commit is contained in:
parent
91b4c6e08a
commit
d2c8f2b225
@ -246,7 +246,12 @@ if(APPLE)
|
||||
COMMAND ln -f -s ${PROJECT_SOURCE_DIR}/data ${CMAKE_BINARY_DIR}/bin/supertuxkart.app/Contents/Resources)
|
||||
endif()
|
||||
else()
|
||||
find_library(PTHREAD_LIBRARY NAMES pthread pthreadVC2 PATHS ${PROJECT_SOURCE_DIR}/dependencies/lib)
|
||||
if(MSVC)
|
||||
set(PTHREAD_NAMES pthreadVC2)
|
||||
elseif(MINGW)
|
||||
set(PTHREAD_NAMES "winpthread-1" pthreadGC2)
|
||||
endif()
|
||||
find_library(PTHREAD_LIBRARY NAMES pthread ${PTHREAD_NAMES} PATHS ${PROJECT_SOURCE_DIR}/dependencies/lib)
|
||||
mark_as_advanced(PTHREAD_LIBRARY)
|
||||
|
||||
# Set data dir (absolute or relative to CMAKE_INSTALL_PREFIX)
|
||||
|
Loading…
x
Reference in New Issue
Block a user