Changeset View
Changeset View
Standalone View
Standalone View
net/libproxy/files/patch-utils_CMakeLists.txt
- This file was added.
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
As the library is only built in the master port, and therfore missing in the | |||||
build directory for the slave ports, find it via pkg-config and link against it, | |||||
when building a slave. | |||||
--- utils/CMakeLists.txt.orig 2017-05-11 09:33:33 UTC | |||||
+++ utils/CMakeLists.txt | |||||
@@ -1,5 +1,9 @@ | |||||
include_directories("../libproxy") | |||||
add_executable(proxy proxy.c) | |||||
-target_link_libraries(proxy libproxy) | |||||
+if (WITH_LIBRARY) | |||||
+ target_link_libraries(proxy libproxy) | |||||
+else () | |||||
+ target_link_libraries(proxy PkgConfig::LIBPROXY) | |||||
+endif () | |||||
install(TARGETS proxy RUNTIME DESTINATION ${BIN_INSTALL_DIR}) |