File tree 2 files changed +2
-7
lines changed
2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,6 @@ include(cmake/ide.cmake)
10
10
11
11
spdlog_extract_version()
12
12
13
- cmake_policy (SET CMP0091 NEW) # for choosing msvc static/dynamic runtime library
14
-
15
13
project (spdlog VERSION ${SPDLOG_VERSION} LANGUAGES CXX)
16
14
message (STATUS "Build spdlog: ${SPDLOG_VERSION} " )
17
15
@@ -89,7 +87,6 @@ endif()
89
87
if (WIN32 )
90
88
option (SPDLOG_WCHAR_SUPPORT "Support wchar api" OFF )
91
89
option (SPDLOG_WCHAR_FILENAMES "Support wchar filenames" OFF )
92
- option (SPDLOG_STATIC_VCRT "Force /MT for static VC runtimes" OFF )
93
90
endif ()
94
91
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" )
95
92
option (SPDLOG_CLOCK_COARSE
@@ -127,10 +124,6 @@ if(NOT SPDLOG_FMT_EXTERNAL AND NOT SPDLOG_FMT_EXTERNAL_HO)
127
124
list (APPEND SPDLOG_SRCS src/fmt.cpp)
128
125
endif ()
129
126
130
- if (MSVC AND SPDLOG_STATIC_VCRT)
131
- set (CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>" )
132
- endif ()
133
-
134
127
if (SPDLOG_BUILD_SHARED OR BUILD_SHARED_LIBS )
135
128
if (WIN32 )
136
129
configure_file (${CMAKE_CURRENT_SOURCE_DIR} /cmake/version .rc.in ${CMAKE_CURRENT_BINARY_DIR} /version .rc @ONLY)
@@ -299,3 +292,4 @@ if(SPDLOG_INSTALL)
299
292
# ---------------------------------------------------------------------------------------
300
293
include (cmake/spdlogCPack.cmake)
301
294
endif ()
295
+
Original file line number Diff line number Diff line change @@ -59,3 +59,4 @@ function(spdlog_enable_sanitizer target_name)
59
59
target_compile_options (${target_name} PRIVATE -fno-omit-frame-pointer)
60
60
target_link_libraries (${target_name} PRIVATE -fsanitize=address,undefined -fuse-ld=gold)
61
61
endfunction ()
62
+
You can’t perform that action at this time.
0 commit comments