Skip to content

Commit

Permalink
set_directory_properties ->add_compile_options
Browse files Browse the repository at this point in the history
  • Loading branch information
AviaAv committed Oct 13, 2024
1 parent e8a77da commit 85da1c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions third-party/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
string(REPLACE ${PROJECT_SOURCE_DIR}/ "" _rel_path ${CMAKE_CURRENT_LIST_DIR})

if (MSVC)
set_directory_properties(PROPERTIES COMPILE_FLAGS "/W0") # ignore warnings on third party
add_compile_options(/W0) # ignore warnings on third party
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set_directory_properties(PROPERTIES COMPILE_FLAGS "-w")
add_compile_options(-w)
endif()

include(CMake/external_json.cmake)
Expand Down

0 comments on commit 85da1c4

Please sign in to comment.