Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix /permissive- flag casuing a compile error on clang for windows
  • Loading branch information
dankmeme01 committed Feb 26, 2025
commit 810a75030676054ac6512ea5c06a9e79e3bd5330
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ if(FASTFLOAT_SANITIZE)
endif()
endif()
if(MSVC_VERSION GREATER 1910)
target_compile_options(fast_float INTERFACE /permissive-)
# /permissive- will only work on MSVC or clang-cl, clang will not accept it.
if (NOT CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_FRONTEND_VARIANT STREQUAL "MSVC")
Comment thread
dankmeme01 marked this conversation as resolved.
Outdated
target_compile_options(fast_float INTERFACE /permissive-)
endif()
endif()


Expand Down