mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-13 14:26:30 -04:00
Merge pull request #116 from JoakimSoderberg/fix_build_tree_cmake_config
This fixes a bug introduced in 27bd9faf498b91923296cc91643e03ec4055c230
This commit is contained in:
commit
deca354cba
@ -1112,7 +1112,7 @@ set(EVENT__INCLUDE_DIRS
|
|||||||
"${PROJECT_SOURCE_DIR}/include"
|
"${PROJECT_SOURCE_DIR}/include"
|
||||||
"${PROJECT_BINARY_DIR}/include")
|
"${PROJECT_BINARY_DIR}/include")
|
||||||
set(LIBEVENT_INCLUDE_DIRS ${EVENT__INCLUDE_DIRS} CACHE PATH "Libevent include directories")
|
set(LIBEVENT_INCLUDE_DIRS ${EVENT__INCLUDE_DIRS} CACHE PATH "Libevent include directories")
|
||||||
configure_file(${PROJECT_SOURCE_DIR}/cmake/LibeventConfig.cmake.in
|
configure_file(${PROJECT_SOURCE_DIR}/cmake/LibeventConfigBuildTree.cmake.in
|
||||||
${PROJECT_BINARY_DIR}/LibeventConfig.cmake
|
${PROJECT_BINARY_DIR}/LibeventConfig.cmake
|
||||||
@ONLY)
|
@ONLY)
|
||||||
|
|
||||||
|
17
cmake/LibeventConfigBuildTree.cmake.in
Normal file
17
cmake/LibeventConfigBuildTree.cmake.in
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# - Config file for the Libevent package
|
||||||
|
# It defines the following variables
|
||||||
|
# LIBEVENT_INCLUDE_DIRS - include directories for FooBar
|
||||||
|
# LIBEVENT_LIBRARIES - libraries to link against
|
||||||
|
|
||||||
|
# Get the path of the current file.
|
||||||
|
get_filename_component(LIBEVENT_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
||||||
|
|
||||||
|
# Set the include directories.
|
||||||
|
set(LIBEVENT_INCLUDE_DIRS "@EVENT__INCLUDE_DIRS@")
|
||||||
|
|
||||||
|
# Include the project Targets file, this contains definitions for IMPORTED targets.
|
||||||
|
include(${LIBEVENT_CMAKE_DIR}/LibeventTargets.cmake)
|
||||||
|
|
||||||
|
# IMPORTED targets from LibeventTargets.cmake
|
||||||
|
set(LIBEVENT_LIBRARIES event event_core event_extra)
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user