File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,17 @@ macro(CeleroSetDefaultCompilerOptions)
34
34
target_compile_options (${PROJECT_NAME} PRIVATE /MP )
35
35
target_compile_options (${PROJECT_NAME} PRIVATE /D_SCL_SECURE_NO_WARNINGS )
36
36
target_compile_options (${PROJECT_NAME} PRIVATE /permissive- )
37
+
37
38
if (NOT CELERO_COMPILE_DYNAMIC_LIBRARIES )
38
- target_compile_options (${PROJECT_NAME} PRIVATE /MT$<$<CONFIG:Debug>:d> )
39
+ if (VCPKG_CRT_LINKAGE )
40
+ if (VCPKG_CRT_LINKAGE STREQUAL "static" )
41
+ target_compile_options (${PROJECT_NAME} PRIVATE /MT$<$<CONFIG:Debug>:d> )
42
+ else ()
43
+ target_compile_options (${PROJECT_NAME} PRIVATE /MD$<$<CONFIG:Debug>:d> )
44
+ endif ()
45
+ else ()
46
+ target_compile_options (${PROJECT_NAME} PRIVATE /MD$<$<CONFIG:Debug>:d> )
47
+ endif ()
39
48
endif ()
40
49
41
50
if (CELERO_TREAT_WARNINGS_AS_ERRORS )
You can’t perform that action at this time.
0 commit comments