link executables to static runtime

This commit is contained in:
akallabeth 2024-01-24 15:34:59 +01:00 committed by Martin Fleisz
parent fc47a019df
commit 187001ed55
1 changed files with 1 additions and 0 deletions

View File

@ -13,3 +13,4 @@ clang_detect_tool(CLANG_XX_EXE clang++ REQUIRED)
set (CMAKE_C_COMPILER "${CLANG_EXE}" CACHE STRING "qa default") set (CMAKE_C_COMPILER "${CLANG_EXE}" CACHE STRING "qa default")
set (CMAKE_CXX_COMPILER "${CLANG_XX_EXE}" CACHE STRING "qa default") set (CMAKE_CXX_COMPILER "${CLANG_XX_EXE}" CACHE STRING "qa default")
set (CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++" CACHE STRING "qa-default")