Skip to content

Instantly share code, notes, and snippets.

@ZenulAbidin
Created Aug 30, 2021
Embed
What would you like to do?
Pthread Fixed
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