Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
Chang Liu committed Jan 24, 2025
1 parent 4a828ab commit 8118908
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -208,17 +208,17 @@ if(${ENABLE_UBSAN})
endif()
endif()

if(MSVC)
# Force static linking of the runtime library on Windows
foreach(flag_var CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE)
if(${flag_var} MATCHES "/MD")
string(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
endif()
if(${flag_var} MATCHES "/MDd")
string(REGEX REPLACE "/MDd" "/MTd" ${flag_var} "${${flag_var}}")
endif()
endforeach()
endif()
# if(MSVC)
# # Force static linking of the runtime library on Windows
# foreach(flag_var CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE)
# if(${flag_var} MATCHES "/MD")
# string(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
# endif()
# if(${flag_var} MATCHES "/MDd")
# string(REGEX REPLACE "/MDd" "/MTd" ${flag_var} "${${flag_var}}")
# endif()
# endforeach()
# endif()

if(${ENABLE_RUNTIME_CHECKS})
add_compile_definitions(KUZU_RUNTIME_CHECKS)
Expand Down

0 comments on commit 8118908

Please sign in to comment.