Skip to content

Instantly share code, notes, and snippets.

@ZenulAbidin
Created August 30, 2021 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ZenulAbidin/b65b8d4e62366948929387a34eb6deba to your computer and use it in GitHub Desktop.
Save ZenulAbidin/b65b8d4e62366948929387a34eb6deba to your computer and use it in GitHub Desktop.
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