Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
00cd0c38
Unverified
Commit
00cd0c38
authored
Jul 16, 2018
by
Harris Hancock
Committed by
GitHub
Jul 16, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #679 from intelfx/cmake-fix-search
cmake: drop NO_DEFAULT_PATHS when searching libraries
parents
7bf5915e
df0fbbe3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
CapnProtoTargets.cmake
c++/cmake/CapnProtoTargets.cmake
+6
-0
No files found.
c++/cmake/CapnProtoTargets.cmake
View file @
00cd0c38
...
...
@@ -88,6 +88,12 @@ function(_capnp_import_pkg_config_target target)
PATHS
${${
target
}
_LIBRARY_DIRS
}
NO_DEFAULT_PATH
)
# If the installed version of Cap'n Proto is in a system location, pkg-config will not have filled
# in ${target}_LIBRARY_DIRS. To account for this, fall back to a regular search.
find_library
(
CapnProto_
${
target
}
_IMPORTED_LOCATION
NAMES
${
target_name_shared
}
${
target_name_static
}
# prefer libfoo-version.so over libfoo.a
)
if
(
NOT CapnProto_
${
target
}
_IMPORTED_LOCATION
)
# Not an error if the library doesn't exist -- we may have found a lite mode installation.
if
(
CapnProto_DEBUG
)
...
...
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