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
22f260bb
Commit
22f260bb
authored
Feb 15, 2015
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support source dir as `LIBCAF_ROOT_DIR`
parent
96a251b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
cmake/FindLibcaf.cmake
cmake/FindLibcaf.cmake
+5
-2
No files found.
cmake/FindLibcaf.cmake
View file @
22f260bb
...
@@ -31,8 +31,9 @@ foreach (comp ${Libcaf_FIND_COMPONENTS})
...
@@ -31,8 +31,9 @@ foreach (comp ${Libcaf_FIND_COMPONENTS})
# look for headers: give CMake hints where to find non-installed CAF versions
# look for headers: give CMake hints where to find non-installed CAF versions
# note that we look for the headers of each component individually: this is
# note that we look for the headers of each component individually: this is
# necessary to support non-installed versions of CAF, i.e., accessing the
# necessary to support non-installed versions of CAF, i.e., accessing the
# checked out "actor-framework" or "caf" directory structure directly
# checked out "actor-framework" or "caf" directory structure directly;
unset
(
HDRHINT
)
# also check whether LIBCAF_ROOT_DIR is a source directory
set
(
HDRHINT
"
${
LIBCAF_ROOT_DIR
}
/libcaf_
${
comp
}
"
)
foreach
(
dir
".."
"../.."
"../../.."
)
foreach
(
dir
".."
"../.."
"../../.."
)
foreach
(
subdir
"actor-framework"
"caf"
)
foreach
(
subdir
"actor-framework"
"caf"
)
set
(
HDRHINT
${
HDRHINT
}
"
${
dir
}
/
${
subdir
}
/libcaf_
${
comp
}
"
)
set
(
HDRHINT
${
HDRHINT
}
"
${
dir
}
/
${
subdir
}
/libcaf_
${
comp
}
"
)
...
@@ -78,6 +79,7 @@ foreach (comp ${Libcaf_FIND_COMPONENTS})
...
@@ -78,6 +79,7 @@ foreach (comp ${Libcaf_FIND_COMPONENTS})
"caf_
${
comp
}
"
"caf_
${
comp
}
"
HINTS
HINTS
${
LIBCAF_ROOT_DIR
}
/lib
${
LIBCAF_ROOT_DIR
}
/lib
${
LIBCAF_ROOT_DIR
}
/build/lib
/usr/lib
/usr/lib
/usr/local/lib
/usr/local/lib
/opt/local/lib
/opt/local/lib
...
@@ -100,6 +102,7 @@ find_package_handle_standard_args(Libcaf
...
@@ -100,6 +102,7 @@ find_package_handle_standard_args(Libcaf
FOUND_VAR LIBCAF_FOUND
FOUND_VAR LIBCAF_FOUND
REQUIRED_VARS LIBCAF_LIBRARIES LIBCAF_INCLUDE_DIRS
REQUIRED_VARS LIBCAF_LIBRARIES LIBCAF_INCLUDE_DIRS
HANDLE_COMPONENTS
)
HANDLE_COMPONENTS
)
# final step to tell CMake we're done
# final step to tell CMake we're done
mark_as_advanced
(
LIBCAF_ROOT_DIR
mark_as_advanced
(
LIBCAF_ROOT_DIR
LIBCAF_LIBRARIES
LIBCAF_LIBRARIES
...
...
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