Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
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
Operations
Operations
Metrics
Environments
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 Framework
Commits
3702fd4d
Commit
3702fd4d
authored
Sep 24, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update FindCAF CMake script
parent
50403ea0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
12 deletions
+26
-12
cmake/FindCAF.cmake
cmake/FindCAF.cmake
+26
-12
No files found.
cmake/FindCAF.cmake
View file @
3702fd4d
...
...
@@ -36,12 +36,14 @@ foreach (comp ${CAF_FIND_COMPONENTS})
if
(
CAF_ROOT_DIR
)
set
(
header_hints
"
${
CAF_ROOT_DIR
}
/include"
"
${
CAF_ROOT_DIR
}
/../libcaf_
${
comp
}
"
)
"
${
CAF_ROOT_DIR
}
/libcaf_
${
comp
}
"
"
${
CAF_ROOT_DIR
}
/../libcaf_
${
comp
}
"
"
${
CAF_ROOT_DIR
}
/../../libcaf_
${
comp
}
"
)
endif
()
find_path
(
CAF_INCLUDE_DIR_
${
UPPERCOMP
}
NAMES
${
HDRNAME
}
HINTS
HINTS
${
header_hints
}
/usr/include
/usr/local/include
...
...
@@ -51,18 +53,28 @@ foreach (comp ${CAF_FIND_COMPONENTS})
mark_as_advanced
(
CAF_INCLUDE_DIR_
${
UPPERCOMP
}
)
if
(
NOT
"
${
CAF_INCLUDE_DIR_
${
UPPERCOMP
}}
"
STREQUAL
"CAF_INCLUDE_DIR_
${
UPPERCOMP
}
-NOTFOUND"
)
# mark as found (set back to false
in case library cannot be found
)
# mark as found (set back to false
when missing library or build header
)
set
(
CAF_
${
comp
}
_FOUND true
)
# add to CAF_INCLUDE_DIRS only if path isn't already set
set
(
duplicate false
)
foreach
(
p
${
CAF_INCLUDE_DIRS
}
)
if
(
${
p
}
STREQUAL
${
CAF_INCLUDE_DIR_
${
UPPERCOMP
}}
)
set
(
duplicate true
)
endif
()
endforeach
()
if
(
NOT duplicate
)
set
(
CAF_INCLUDE_DIRS
${
CAF_INCLUDE_DIRS
}
${
CAF_INCLUDE_DIR_
${
UPPERCOMP
}}
)
# check for CMake-generated build header for the core component
if
(
"
${
comp
}
"
STREQUAL
"core"
)
find_path
(
caf_build_header_path
NAMES
caf/detail/build_config.hpp
HINTS
${
header_hints
}
/usr/include
/usr/local/include
/opt/local/include
/sw/include
${
CMAKE_INSTALL_PREFIX
}
/include
)
if
(
"
${
caf_build_header_path
}
"
STREQUAL
"caf_build_header_path-NOTFOUND"
)
message
(
WARNING
"Found all.hpp for CAF core, but not build_config.hpp"
)
set
(
CAF_
${
comp
}
_FOUND false
)
else
()
list
(
APPEND CAF_INCLUDE_DIRS
"
${
caf_build_header_path
}
"
)
endif
()
endif
()
list
(
APPEND CAF_INCLUDE_DIRS
"
${
CAF_INCLUDE_DIR_
${
UPPERCOMP
}}
"
)
# look for (.dll|.so|.dylib) file, again giving hints for non-installed CAFs
# skip probe_event as it is header only
if
(
NOT
${
comp
}
STREQUAL
"probe_event"
AND NOT
${
comp
}
STREQUAL
"test"
)
...
...
@@ -90,6 +102,8 @@ foreach (comp ${CAF_FIND_COMPONENTS})
endif
()
endforeach
()
list
(
REMOVE_DUPLICATES CAF_INCLUDE_DIRS
)
# let CMake check whether all requested components have been found
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
CAF
...
...
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