diff --git a/third-party/CMakeLists.txt b/third-party/CMakeLists.txt index e7e30913e38..9a3b4f97b94 100644 --- a/third-party/CMakeLists.txt +++ b/third-party/CMakeLists.txt @@ -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)