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
87145db8
Commit
87145db8
authored
Nov 04, 2014
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Also look for "caf" folder in FindLibcaf script
parent
465a091f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
cmake/FindLibcaf.cmake
cmake/FindLibcaf.cmake
+16
-8
No files found.
cmake/FindLibcaf.cmake
View file @
87145db8
...
...
@@ -31,8 +31,13 @@ foreach (comp ${Libcaf_FIND_COMPONENTS})
# 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
# necessary to support non-installed versions of CAF, i.e., accessing the
# checked out "actor-framework" directory structure directly
set
(
HDRHINT
"actor-framework/libcaf_
${
comp
}
"
)
# checked out "actor-framework" or "caf" directory structure directly
unset
(
HDRHINT
)
foreach
(
dir
".."
"../.."
"../../.."
)
foreach
(
subdir
"actor-framework"
"caf"
)
set
(
HDRHINT
${
HDRHINT
}
"
${
dir
}
/
${
subdir
}
/libcaf_
${
comp
}
"
)
endforeach
()
endforeach
()
find_path
(
LIBCAF_INCLUDE_DIR_
${
UPPERCOMP
}
NAMES
${
HDRNAME
}
...
...
@@ -43,9 +48,7 @@ foreach (comp ${Libcaf_FIND_COMPONENTS})
/opt/local/include
/sw/include
${
CMAKE_INSTALL_PREFIX
}
/include
../
${
HDRHINT
}
../../
${
HDRHINT
}
../../../
${
HDRHINT
}
)
${
HDRHINT
}
)
mark_as_advanced
(
LIBCAF_INCLUDE_DIR_
${
UPPERCOMP
}
)
if
(
NOT
"
${
LIBCAF_INCLUDE_DIR_
${
UPPERCOMP
}}
"
STREQUAL
"LIBCAF_INCLUDE_DIR_
${
UPPERCOMP
}
-NOTFOUND"
)
# mark as found (set back to false in case library cannot be found)
...
...
@@ -63,6 +66,13 @@ foreach (comp ${Libcaf_FIND_COMPONENTS})
# 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"
)
unset
(
LIBHINT
)
foreach
(
dir
".."
"../.."
"../../.."
)
foreach
(
subdir
"actor-framework"
"caf"
)
set
(
LIBHINT
${
LIBHINT
}
"
${
dir
}
/
${
subdir
}
/build/lib"
)
endforeach
()
endforeach
()
message
(
STATUS
"libhint:
${
LIBHINT
}
"
)
find_library
(
LIBCAF_LIBRARY_
${
UPPERCOMP
}
NAMES
"caf_
${
comp
}
"
...
...
@@ -73,9 +83,7 @@ foreach (comp ${Libcaf_FIND_COMPONENTS})
/opt/local/lib
/sw/lib
${
CMAKE_INSTALL_PREFIX
}
/lib
../actor-framework/build/lib
../../actor-framework/build/lib
../../../actor-framework/build/lib
)
${
LIBHINT
}
)
mark_as_advanced
(
LIBCAF_LIBRARY_
${
UPPERCOMP
}
)
if
(
"
${
LIBCAF_LIBRARY_
${
UPPERCOMP
}}
"
STREQUAL
"LIBCAF_LIBRARY-NOTFOUND"
)
set
(
Libcaf_
${
comp
}
_FOUND false
)
...
...
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