meganz / mingw-std-threads

Standard threads implementation currently still missing on MinGW GCC on Windows
BSD 2-Clause "Simplified" License
439 stars 137 forks source link

Use try_compile() when retrieving the header paths. #71

Closed deymo closed 4 years ago

deymo commented 4 years ago

try_compile() of a single source file will use the right compiler and compiler flags which were not handled by the execute_process() call before. In particular, this allows to use clang++ as the compiler and pass CMAKE_CXX_COMPILER_TARGET=x86_64-w64-mingw32 to cmake instead of relying on the compiler being x86_64-w64-mingw32-g++.

lanyizi commented 4 years ago

@alxvasilev I think this pull request can be merged

deymo commented 4 years ago

@alxvasilev hi, would it be possible to merge this pull request?

alxvasilev commented 4 years ago

Sure, yes, apologies for the delay.