-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert accidental change to CMake file from #255
For #255, we ran `clang-format` over the code base. By accident, we've also formatted `BrokerConfig.cmake.in` and broke CMake packaging in the process by changing `@PACKAGE_INIT@` to `@PACKAGE_INIT @`.
- Loading branch information
Showing
1 changed file
with
14 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
@PACKAGE_INIT @ | ||
@PACKAGE_INIT@ | ||
|
||
include(CMakeFindDependencyMacro) | ||
include(CMakeFindDependencyMacro) | ||
|
||
set(CMAKE_THREAD_PREFER_PTHREAD ON) set(THREADS_PREFER_PTHREAD_FLAG ON) | ||
find_dependency(Threads REQUIRED) | ||
set(CMAKE_THREAD_PREFER_PTHREAD ON) | ||
set(THREADS_PREFER_PTHREAD_FLAG ON) | ||
find_dependency(Threads REQUIRED) | ||
|
||
find_dependency(OpenSSL REQUIRED) | ||
find_dependency(OpenSSL REQUIRED) | ||
|
||
find_dependency(CAF @CAF_VERSION @REQUIRED COMPONENTS core io) | ||
find_dependency(CAF @CAF_VERSION@ REQUIRED COMPONENTS core io) | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/BrokerTargets.cmake") | ||
include("${CMAKE_CURRENT_LIST_DIR}/BrokerTargets.cmake") | ||
|
||
set(BROKER_LIBRARY "@BROKER_LIBRARY@" CACHE INTERNAL | ||
"name of the Broker library target") | ||
set(BROKER_LIBRARY "@BROKER_LIBRARY@" CACHE INTERNAL "name of the Broker library target") | ||
|
||
function(set_include_dir) get_target_property(dirs ${ | ||
BROKER_LIBRARY} INTERFACE_INCLUDE_DIRECTORIES) | ||
set(BROKER_INCLUDE_DIR "${dirs}" CACHE INTERNAL | ||
"extra include directories") | ||
endfunction() | ||
function(set_include_dir) | ||
get_target_property(dirs ${BROKER_LIBRARY} INTERFACE_INCLUDE_DIRECTORIES) | ||
set(BROKER_INCLUDE_DIR "${dirs}" CACHE INTERNAL "extra include directories") | ||
endfunction() | ||
|
||
set_include_dir() | ||
set_include_dir() |