]> git.stg.codes - stg.git/blobdiff - libs/CMakeLists.txt
Fix some BSD-related issues.
[stg.git] / libs / CMakeLists.txt
index 17b90799d1228b11bcf54cf321c8545963ea4b4d..f413010e1a4ac6f10d556fa9252a4133d8d08128 100644 (file)
@@ -64,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 )