Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
actor-incubator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
actor-incubator
Commits
d6b9e2c1
Commit
d6b9e2c1
authored
Dec 16, 2019
by
Jakob Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update FindCAF.cmake
parent
0bc32b58
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
4 deletions
+44
-4
cmake/FindCAF.cmake
cmake/FindCAF.cmake
+44
-4
No files found.
cmake/FindCAF.cmake
View file @
d6b9e2c1
...
@@ -66,12 +66,12 @@ foreach (comp ${CAF_FIND_COMPONENTS})
...
@@ -66,12 +66,12 @@ foreach (comp ${CAF_FIND_COMPONENTS})
/usr/local/include
/usr/local/include
/opt/local/include
/opt/local/include
/sw/include
/sw/include
${
CMAKE_INSTALL_PREFIX
}
/
include
)
${
CMAKE_INSTALL_PREFIX
}
/
${
CMAKE_INSTALL_INCLUDEDIR
}
)
if
(
"
${
caf_build_header_path
}
"
STREQUAL
"caf_build_header_path-NOTFOUND"
)
if
(
"
${
caf_build_header_path
}
"
STREQUAL
"caf_build_header_path-NOTFOUND"
)
message
(
WARNING
"Found all.hpp for CAF core, but not build_config.hpp"
)
message
(
WARNING
"Found all.hpp for CAF core, but not build_config.hpp"
)
set
(
CAF_
${
comp
}
_FOUND false
)
set
(
CAF_
${
comp
}
_FOUND false
)
else
()
else
()
list
(
APPEND CAF_INCLUDE_DIR
S
"
${
caf_build_header_path
}
"
)
list
(
APPEND CAF_INCLUDE_DIR
_
${
UPPERCOMP
}
"
${
caf_build_header_path
}
"
)
endif
()
endif
()
endif
()
endif
()
list
(
APPEND CAF_INCLUDE_DIRS
"
${
CAF_INCLUDE_DIR_
${
UPPERCOMP
}}
"
)
list
(
APPEND CAF_INCLUDE_DIRS
"
${
CAF_INCLUDE_DIR_
${
UPPERCOMP
}}
"
)
...
@@ -84,14 +84,14 @@ foreach (comp ${CAF_FIND_COMPONENTS})
...
@@ -84,14 +84,14 @@ foreach (comp ${CAF_FIND_COMPONENTS})
find_library
(
CAF_LIBRARY_
${
UPPERCOMP
}
find_library
(
CAF_LIBRARY_
${
UPPERCOMP
}
NAMES
NAMES
"caf_
${
comp
}
"
"caf_
${
comp
}
"
"caf_
${
comp
}
_static"
HINTS
HINTS
${
library_hints
}
${
library_hints
}
/usr/lib
/usr/lib
/usr/local/lib
/usr/local/lib
/opt/local/lib
/opt/local/lib
/sw/lib
/sw/lib
${
CMAKE_INSTALL_PREFIX
}
/lib
)
${
CMAKE_INSTALL_PREFIX
}
/
${
CMAKE_INSTALL_LIBDIR
}
${
CMAKE_INSTALL_PREFIX
}
/
${
CMAKE_INSTALL_LIBDIR
}
/
${
CMAKE_BUILD_TYPE
}
)
mark_as_advanced
(
CAF_LIBRARY_
${
UPPERCOMP
}
)
mark_as_advanced
(
CAF_LIBRARY_
${
UPPERCOMP
}
)
if
(
"
${
CAF_LIBRARY_
${
UPPERCOMP
}}
"
if
(
"
${
CAF_LIBRARY_
${
UPPERCOMP
}}
"
STREQUAL
"CAF_LIBRARY_
${
UPPERCOMP
}
-NOTFOUND"
)
STREQUAL
"CAF_LIBRARY_
${
UPPERCOMP
}
-NOTFOUND"
)
...
@@ -119,3 +119,43 @@ mark_as_advanced(CAF_ROOT_DIR
...
@@ -119,3 +119,43 @@ mark_as_advanced(CAF_ROOT_DIR
CAF_LIBRARIES
CAF_LIBRARIES
CAF_INCLUDE_DIRS
)
CAF_INCLUDE_DIRS
)
if
(
CAF_core_FOUND AND NOT TARGET caf::core
)
add_library
(
caf::core UNKNOWN IMPORTED
)
set_target_properties
(
caf::core PROPERTIES
IMPORTED_LOCATION
"
${
CAF_LIBRARY_CORE
}
"
INTERFACE_INCLUDE_DIRECTORIES
"
${
CAF_INCLUDE_DIR_CORE
}
"
)
endif
()
if
(
CAF_io_FOUND AND NOT TARGET caf::io
)
add_library
(
caf::io UNKNOWN IMPORTED
)
set_target_properties
(
caf::io PROPERTIES
IMPORTED_LOCATION
"
${
CAF_LIBRARY_IO
}
"
INTERFACE_INCLUDE_DIRECTORIES
"
${
CAF_INCLUDE_DIR_IO
}
"
INTERFACE_LINK_LIBRARIES
"caf::core"
)
endif
()
if
(
CAF_openssl_FOUND AND NOT TARGET caf::openssl
)
add_library
(
caf::openssl UNKNOWN IMPORTED
)
set_target_properties
(
caf::openssl PROPERTIES
IMPORTED_LOCATION
"
${
CAF_LIBRARY_OPENSSL
}
"
INTERFACE_INCLUDE_DIRECTORIES
"
${
CAF_INCLUDE_DIR_OPENSSL
}
"
INTERFACE_LINK_LIBRARIES
"caf::core;caf::io"
)
if
(
NOT BUILD_SHARED_LIBS
)
include
(
CMakeFindDependencyMacro
)
set
(
OPENSSL_USE_STATIC_LIBS TRUE
)
find_dependency
(
OpenSSL
)
set_property
(
TARGET caf::openssl APPEND PROPERTY
INTERFACE_LINK_LIBRARIES
"OpenSSL::SSL"
)
endif
()
endif
()
if
(
CAF_opencl_FOUND AND NOT TARGET caf::opencl
)
add_library
(
caf::opencl UNKNOWN IMPORTED
)
set_target_properties
(
caf::opencl PROPERTIES
IMPORTED_LOCATION
"
${
CAF_LIBRARY_OPENCL
}
"
INTERFACE_INCLUDE_DIRECTORIES
"
${
CAF_INCLUDE_DIR_OPENCL
}
"
INTERFACE_LINK_LIBRARIES
"caf::core"
)
endif
()
if
(
CAF_test_FOUND AND NOT TARGET caf::test
)
add_library
(
caf::test INTERFACE IMPORTED
)
set_target_properties
(
caf::test PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES
"
${
CAF_INCLUDE_DIR_TEST
}
"
INTERFACE_LINK_LIBRARIES
"caf::core"
)
endif
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment