Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
G
glog
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
glog
Commits
1aec14ed
Commit
1aec14ed
authored
Feb 23, 2018
by
Sergiu Deitsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: do not introduce a policy stack in the package config
parent
4c4631c9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
CMakeLists.txt
CMakeLists.txt
+2
-2
glog-config.cmake.in
glog-config.cmake.in
+3
-4
No files found.
CMakeLists.txt
View file @
1aec14ed
...
...
@@ -590,7 +590,7 @@ install (TARGETS glog
LIBRARY DESTINATION
${
_glog_CMake_LIBDIR
}
ARCHIVE DESTINATION
${
_glog_CMake_LIBDIR
}
)
set
(
glog_
POLICY
_VERSION 3.0
)
set
(
glog_
CMake
_VERSION 3.0
)
if
(
gflags_FOUND
)
# Ensure clients locate only the package config and not third party find
...
...
@@ -600,7 +600,7 @@ if (gflags_FOUND)
else
(
CMAKE_VERSION VERSION_LESS 3.9
)
# Passing additional find_package arguments to find_dependency is possible
# starting with CMake 3.9.
set
(
glog_
POLICY
_VERSION 3.9
)
set
(
glog_
CMake
_VERSION 3.9
)
set
(
gflags_DEPENDENCY
"find_dependency (gflags
${
gflags_VERSION
}
NO_MODULE)"
)
endif
(
CMAKE_VERSION VERSION_LESS 3.9
)
endif
(
gflags_FOUND
)
...
...
glog-config.cmake.in
View file @
1aec14ed
cmake_policy (PUSH)
cmake_policy (VERSION @glog_POLICY_VERSION@)
if (CMAKE_VERSION VERSION_LESS @glog_CMake_VERSION@)
message (FATAL_ERROR "CMake >= @glog_CMake_VERSION@ required")
endif (CMAKE_VERSION VERSION_LESS @glog_CMake_VERSION@)
@PACKAGE_INIT@
...
...
@@ -8,5 +9,3 @@ include (CMakeFindDependencyMacro)
@gflags_DEPENDENCY@
include ("${CMAKE_CURRENT_LIST_DIR}/glog-targets.cmake")
cmake_policy (POP)
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