diff options
Diffstat (limited to 'ArcWelder/CMakeLists.txt')
-rw-r--r-- | ArcWelder/CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ArcWelder/CMakeLists.txt b/ArcWelder/CMakeLists.txt index a03c9fc..5a1569b 100644 --- a/ArcWelder/CMakeLists.txt +++ b/ArcWelder/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required (VERSION "3.13") +cmake_minimum_required (VERSION "3.15") project(ArcWelder C CXX) @@ -17,6 +17,12 @@ include(sourcelist.cmake) # Add a library using our ArcWelderSources variable from our sourcelist file add_library(${PROJECT_NAME} STATIC ${ArcWelderSources}) + +if(MSVC) + # link to the msvc runtime statically, keeping debug info if we are in debug config + set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>") +endif() + install( TARGETS ${PROJECT_NAME} ARCHIVE DESTINATION lib |