From d86234b18f94044462a64275542c33d7e9afdf26 Mon Sep 17 00:00:00 2001 From: Maxime dcb <40819564+maxDcb@users.noreply.github.com> Date: Thu, 9 Feb 2023 16:22:01 +0100 Subject: [PATCH 1/2] Update CMakeLists.txt --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cfddbfb..eedd8b1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,7 +54,7 @@ if (NOT MSVC) set_target_properties ("MemoryModule" PROPERTIES PREFIX "") endif () -add_subdirectory (example) -add_subdirectory (tests) +#add_subdirectory (example) +#add_subdirectory (tests) enable_language (RC) From 1649d0a190cc768d6a9162a2a1910d992ea2f0a7 Mon Sep 17 00:00:00 2001 From: kali Date: Thu, 5 Sep 2024 17:04:31 +0200 Subject: [PATCH 2/2] Force static --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index eedd8b1..96750b5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,6 +49,8 @@ else () endif () add_library (MemoryModule STATIC MemoryModule.c MemoryModule.h) +set_property(TARGET MemoryModule PROPERTY + MSVC_RUNTIME_LIBRARY "MultiThreaded") target_include_directories(MemoryModule PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}") if (NOT MSVC) set_target_properties ("MemoryModule" PROPERTIES PREFIX "")