diff --git a/.github/workflows/xpbuild.yml b/.github/workflows/xpbuild.yml index b3a6f37..3912000 100644 --- a/.github/workflows/xpbuild.yml +++ b/.github/workflows/xpbuild.yml @@ -17,12 +17,15 @@ jobs: uses: externpro/externpro/.github/workflows/build-linux.yml@25.07.18 secrets: automation_token: ${{ secrets.GHCR_TOKEN }} - with: {} + with: + cmake_workflow_preset_suffix: Release macos: uses: externpro/externpro/.github/workflows/build-macos.yml@25.07.18 secrets: inherit - with: {} + with: + cmake_workflow_preset_suffix: Release windows: uses: externpro/externpro/.github/workflows/build-windows.yml@25.07.18 secrets: inherit - with: {} + with: + cmake_workflow_preset_suffix: Release diff --git a/CMakeLists.txt b/CMakeLists.txt index 50c4740..5e8141b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,18 @@ string(JOIN "\n" EXT2 "find_package(Threads REQUIRED BYPASS_PROVIDER)" "" ) +string(JOIN "\n" COND_OPEN + "" + "if(NOT DEFINED __xp_threads_found_message_shown)" + ) +string(JOIN "\n" COND_CLOSE + "" + " set(__xp_threads_found_message_shown TRUE CACHE INTERNAL \"Flag to track if Threads found message was shown\")" + "else()" + " # Skip the message but still set Threads_FOUND" + " set(Threads_FOUND TRUE)" + "endif()" + ) xpExternPackage(BASE v0 XPDIFF "bin" WEB "https://cmake.org/cmake/help/latest/module/FindThreads.html" DESC "Finds and determines the thread library of the system for multithreading support"