-
-
Save ZenulAbidin/b65b8d4e62366948929387a34eb6deba to your computer and use it in GitHub Desktop.
Pthread Fixed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (MINGW) | |
# There is no variable for this (probably due to the fact that the pthread | |
# library is implicit with a link in msys). | |
find_library(win32pthread | |
NAMES libwinpthread-1.dll) | |
if (NOT win32pthread) | |
if (BUILD_64) | |
set(win32pthread C:\\msys64\\mingw64\\bin\\libwinpthread-1.dll) | |
else() | |
set(win32pthread C:\\msys64\\mingw32\\bin\\libwinpthread-1.dll) | |
endif() | |
message(WARNING "win32pthread library was not found using automatic MinGW search so using default location ${win32pthread}") | |
endif() | |
# Proceed to copy file to build directory... | |
endif () |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment