ports/net/librsync/files/patch-CMakeLists.txt
Po-Chuan Hsieh 933aae61ba
net/librsync: Update to 2.3.4
- Use complete arguments/options

Changes:	https://github.com/librsync/librsync/releases
2023-05-27 12:07:34 +08:00

28 lines
963 B
Text

--- CMakeLists.txt.orig 2023-05-15 13:42:41 UTC
+++ CMakeLists.txt
@@ -162,6 +162,12 @@ message (STATUS "PROJECT_NAME = ${PROJECT_NAME}")
message (STATUS "BUILD_HOSTNAME = ${BUILD_HOSTNAME}")
message (STATUS "CMAKE_SYSTEM = ${CMAKE_SYSTEM}")
+# We need to be able to #include "file" from a few places,
+# * The original source dir
+# * The generated source dir
+include_directories(${CMAKE_CURRENT_BINARY_DIR}/src)
+include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src)
+
# Find POPT
find_package(POPT)
if (POPT_FOUND)
@@ -369,12 +375,6 @@ enable_testing()
# Create conf files
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/src/config.h)
-
-# We need to be able to #include "file" from a few places,
-# * The original source dir
-# * The generated source dir
-include_directories(${CMAKE_CURRENT_BINARY_DIR}/src)
-include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src)
########### next target ###############