Skip to content

Commit

Permalink
fix: adjusted clang compiler options
Browse files Browse the repository at this point in the history
  • Loading branch information
Janus committed Oct 29, 2024
1 parent 47877e1 commit 065903d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ file(GLOB_RECURSE tests tests/*.cpp)
set (CMAKE_CXX_STANDARD 20)

if(MSVC)
add_compile_options("/W4" "$<$<CONFIG:RELEASE>:/O2>")
add_compile_options("/WX" "$<$<CONFIG:RELEASE>:/O2>")
else()
add_compile_options("-Wall" "-Wextra" "-Werror" "$<$<CONFIG:RELEASE>:-O3>")
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
add_compile_options("-stdlib=libc++")
# add_compile_options("-stdlib=libc++")
endif()
endif()

Expand Down

0 comments on commit 065903d

Please sign in to comment.