diff options
Diffstat (limited to 'PyArcWelder/CMakeLists.txt')
-rw-r--r-- | PyArcWelder/CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/PyArcWelder/CMakeLists.txt b/PyArcWelder/CMakeLists.txt index 593eaf2..c4462a6 100644 --- a/PyArcWelder/CMakeLists.txt +++ b/PyArcWelder/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required (VERSION "3.13") +cmake_minimum_required (VERSION "3.15") project(PyArcWelder C CXX) @@ -15,6 +15,12 @@ include_directories(${PYTHON_INCLUDE_DIRS} ${ArcWelder_INCLUDE_DIRS} ${GcodeProc # PyArcWelderSources variable include(sourcelist.cmake) + +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() + # Create our library add_library(${PROJECT_NAME} SHARED ${PyArcWelderSources}) |