Skip to content

Commit

Permalink
Set /MT for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Garey Akhmetshin committed Nov 13, 2024
1 parent f87becb commit 1ccb7e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#-------------------------------------------------------------------------------------------

# Require a minimum version of cmake.
cmake_minimum_required(VERSION 3.13.5 FATAL_ERROR)
cmake_minimum_required(VERSION 3.20 FATAL_ERROR)

# Set the name of the project.
project("addtofullpack_manager")
Expand Down
5 changes: 4 additions & 1 deletion cmake/Definitions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ elseif(WIN32)
# Build type Release, MinSizeRel, RelWithDebInfo
$<$<OR:$<CONFIG:Release>,$<CONFIG:MinSizeRel>,$<CONFIG:RelWithDebInfo>>:
NDEBUG RELEASE _RELEASE>
)
)
set_target_properties("${CMAKE_PROJECT_NAME}" PROPERTIES
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>" # static linking
)
endif()

# Set the DEFINE_SYMBOL property
Expand Down

0 comments on commit 1ccb7e0

Please sign in to comment.