aboutsummaryrefslogtreecommitdiff
path: root/ports/libevent/fix-target-files.patch
blob: d1b2d59700e727721612ebc15347c8c9dbd47fe0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b4a34f3d..4bd80d84 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1343,10 +1343,10 @@ endif()
 set(EVENT_INSTALL_CMAKE_DIR ${DEF_INSTALL_CMAKE_DIR} CACHE PATH "Installation directory for CMake files")
 
 # Make sure the paths are absolute.
-foreach(p LIB BIN INCLUDE CMAKE)
+foreach(p INCLUDE CMAKE)
     set(var EVENT_INSTALL_${p}_DIR)
     if(NOT IS_ABSOLUTE "${${var}}")
-        set(${var} "${CMAKE_INSTALL_PREFIX}/${${var}}")
+        set(${var}_FULL "${CMAKE_INSTALL_PREFIX}/${${var}}")
     endif()
 endforeach()
 
@@ -1371,15 +1371,15 @@ configure_file(${PROJECT_SOURCE_DIR}/cmake/LibeventConfigBuildTree.cmake.in
 # Generate the config file for the installation tree.
 file(RELATIVE_PATH
     REL_INCLUDE_DIR
-    "${EVENT_INSTALL_CMAKE_DIR}"
-    "${EVENT_INSTALL_INCLUDE_DIR}") # Calculate the relative directory from the Cmake dir.
+    "${EVENT_INSTALL_CMAKE_DIR_FULL}"
+    "${EVENT_INSTALL_INCLUDE_DIR_FULL}") # Calculate the relative directory from the Cmake dir.
 
 # Note the EVENT_CMAKE_DIR is defined in LibeventConfig.cmake.in,
 # we escape it here so it's evaluated when it is included instead
 # so that the include dirs are givenrelative to where the
 # config file is located.
 set(EVENT__INCLUDE_DIRS
-    "\${EVENT_CMAKE_DIR}/${REL_INCLUDE_DIR}")
+    "\${EVENT_CMAKE_DIR_FULL}/${REL_INCLUDE_DIR}")
 
 configure_file(${PROJECT_SOURCE_DIR}/cmake/LibeventConfig.cmake.in
                 ${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/LibeventConfig.cmake