Using cmake's MINGW variable to detect proper ABI#579
Using cmake's MINGW variable to detect proper ABI#579MarkCallow merged 2 commits intoKhronosGroup:masterfrom
Conversation
|
My |
|
I am not very familiar with |
|
Thank you @Honeybunch for this. @FuXiii does this fix your issue? |
|
After I run and then : the issue still there: 〒_〒 |
if(MINGW)
# Check if the Threads package is provided; if using Mingw it MIGHT be
find_package(Threads)
if(Threads_FOUND)
target_compile_definitions(ktx PRIVATE WIN32_HAS_PTHREADS)
target_link_libraries(ktx PRIVATE Threads::Threads)
endif()
endif()the |
|
Did the CMake config output this time show threads were found? I suggest that you delete the CMake cache (or the whole build directory) and start over. I've been caught out many times by values being cached from previous runs. For example, if |
|
the |
|
If I use the then I will get the error: But if I use then I will get the right finally compiled result. Maybe the |
* Using internal cmake MINGW variable to make sure that clang + mingw links properly * Making pthreads detection on Windows more robust
* Using internal cmake MINGW variable to make sure that clang + mingw links properly * Making pthreads detection on Windows more robust
* Using internal cmake MINGW variable to make sure that clang + mingw links properly * Making pthreads detection on Windows more robust
* Using internal cmake MINGW variable to make sure that clang + mingw links properly * Making pthreads detection on Windows more robust
* Using internal cmake MINGW variable to make sure that clang + mingw links properly * Making pthreads detection on Windows more robust
* Using internal cmake MINGW variable to make sure that clang + mingw links properly * Making pthreads detection on Windows more robust

This should make sure that any compiler that uses the mingw ABI will be using the correct .def files to link correctly
Followup to #574
Running custom action here: https://github.com/Honeybunch/KTX-Software/actions/runs/2367177228