18 lines
624 B
Plaintext
18 lines
624 B
Plaintext
$OpenBSD: patch-lib_CMakeLists_txt,v 1.1 2017/07/27 15:43:59 zhuk Exp $
|
|
Fix build by using CMake find_package() goo correctly.
|
|
|
|
Index: lib/CMakeLists.txt
|
|
--- lib/CMakeLists.txt.orig
|
|
+++ lib/CMakeLists.txt
|
|
@@ -51,8 +51,8 @@ set_target_properties (liblazperf-static
|
|
COMPILE_FLAGS "-fPIC -std=c++0x"
|
|
)
|
|
|
|
-target_link_libraries (libpc-static xml2)
|
|
-target_link_libraries (libpc-static z)
|
|
+target_link_libraries (libpc-static ${LIBXML2_LIBRARIES})
|
|
+target_link_libraries (libpc-static ${ZLIB_LIBRARIES})
|
|
target_link_libraries (libpc-static m)
|
|
if (LIBGHT_FOUND)
|
|
target_link_libraries (libpc-static ${LIBGHT_LIBRARY})
|