Skip to content

Commit 51c4614

Browse files
committed
Try to fix compile flags
1 parent 0edf175 commit 51c4614

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎CMakeLists.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON) # Generate compile_commands.json for clang
2323
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION OFF) # Disable LTO
2424
cmake_policy(SET CMP0091 NEW) # Enable MSVC runtime library selection
2525
set(CMAKE_MSVC_RUNTIME_LIBRARY "") # Manually set runtime library to avoid warning
26-
add_compile_options("/MT$<$<CONFIG:Debug>:d>" "$<$<COMPILE_LANGUAGE:CXX>:/GR>" "/GS-" "/clang:-ffast-math" "/clang:-fno-finite-math-only") # Use static runtime libraries
26+
add_compile_options("/MT$<$<CONFIG:Debug>:d>" "$<$<COMPILE_LANGUAGE:CXX>:/GR>" "/GS-" "/clang:-msse2" "/clang:-ffast-math" "/clang:-fno-finite-math-only") # Use static runtime libraries
2727
add_link_options("/MANIFEST:NO") # Disable manifest generation
2828
add_compile_definitions("_CRT_SECURE_NO_DEPRECATE" "_CRT_SECURE_NO_WARNINGS" "_WINSOCK_DEPRECATED_NO_WARNINGS") # Disable CRT/Winsock warnings
2929

0 commit comments

Comments
 (0)