Skip to content

Commit

Permalink
Minor changes to CMakeLists.txt compiler options.
Browse files Browse the repository at this point in the history
  • Loading branch information
wo80 committed Jan 1, 2024
1 parent 55b9f61 commit a4b1244
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,10 @@ if(Gaia2_FOUND)
endif()

if(MSVC)
add_compile_definitions(NOMINMAX)
add_compile_definitions(_USE_MATH_DEFINES)
add_compile_options(/W4)
add_compile_definitions(NOMINMAX _USE_MATH_DEFINES)
add_compile_options(/W4 /wd4100)
else()
add_compile_options(-Wall)
add_compile_options(-Wall -Wextra -Wno-unused-parameter)
endif()

add_subdirectory(src)
Expand Down

0 comments on commit a4b1244

Please sign in to comment.