Skip to content

Commit

Permalink
CMake: Rename BUILD_STATIC to BUILD_WITH_STATIC_CRT
Browse files Browse the repository at this point in the history
  • Loading branch information
dmatveev committed Aug 14, 2022
1 parent 77d2037 commit 7c30792
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Expand Up @@ -12,7 +12,7 @@ option(ENABLE_ADE_TESTING "Build tests, require google test" OFF)
option(BUILD_ADE_TUTORIAL "Build tutorial samples" OFF)
option(FORCE_ADE_ASSERTS "Always enable ADE_ASSERT" OFF)
option(BUILD_ADE_DOCUMENTATION "Build doxygen documentation" OFF)
option(BUILD_STATIC "Build static libs" OFF)
option(BUILD_WITH_STATIC_CRT "Build with static multi-threaded C Runtime (MS Windows/Visual Studio only)" OFF)

# TODO: this is horrible hack, we must follow cmake
# build/install policy
Expand All @@ -34,7 +34,7 @@ function(add_security_flags target)
endif()
elseif(WIN32)
target_compile_options( ${target} PRIVATE /GS /DynamicBase)
if(BUILD_STATIC)
if(BUILD_WITH_STATIC_CRT)
target_compile_options( ${target} PRIVATE "/MT")
endif()
if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "4")
Expand Down

0 comments on commit 7c30792

Please sign in to comment.