X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/907166f270d246529788a6de7688f3e54847c0a2..e5499c61083684b28bcbc6950aae66cbf0938703:/libs/CMakeLists.txt diff --git a/libs/CMakeLists.txt b/libs/CMakeLists.txt index 8528b951..17b90799 100644 --- a/libs/CMakeLists.txt +++ b/libs/CMakeLists.txt @@ -29,9 +29,9 @@ if ( BUILD_LIB_IA ) endif ( BUILD_LIB_IA ) if ( BUILD_LIB_IBPP ) - set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-old-style-cast -Wno-useless-cast") add_library ( ibpp STATIC ibpp/all_in_one.cpp ) target_include_directories ( ibpp PUBLIC ibpp/include ) + target_compile_options ( ibpp PRIVATE -Wno-old-style-cast $<$:-Wno-useless-cast> ) endif ( BUILD_LIB_IBPP ) if ( BUILD_LIB_JSON )