X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/1e8eb98d30459399902534082c88b94bb26bb2e3..611c8051a2ae58a1c306675c8250865e12563834:/libs/CMakeLists.txt?ds=inline diff --git a/libs/CMakeLists.txt b/libs/CMakeLists.txt index 59caf2f1..f413010e 100644 --- a/libs/CMakeLists.txt +++ b/libs/CMakeLists.txt @@ -31,6 +31,7 @@ endif ( BUILD_LIB_IA ) if ( BUILD_LIB_IBPP ) 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 ) @@ -63,8 +64,9 @@ if ( BUILD_LIB_SMUX ) endif ( BUILD_LIB_SMUX ) if ( BUILD_LIB_SRVCONF ) + find_package ( EXPAT REQUIRED ) file ( GLOB PARSERS srvconf/parsers/*.cpp ) add_library ( srvconf STATIC srvconf/servconf.cpp srvconf/netunit.cpp ${PARSERS} ) target_include_directories ( srvconf PUBLIC srvconf/include ) - target_link_libraries ( srvconf crypto common ) + target_link_libraries ( srvconf crypto common EXPAT::EXPAT ) endif ( BUILD_LIB_SRVCONF )