Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
G
gflags
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
gflags
Commits
18469830
Commit
18469830
authored
Nov 24, 2016
by
Andreas Schuh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: Ensure installation path uses forward slashes
parent
3886da50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
CMakeLists.txt
CMakeLists.txt
+5
-0
No files found.
CMakeLists.txt
View file @
18469830
...
...
@@ -133,6 +133,10 @@ endif ()
# prefix for package variables in CMake configuration file
string
(
TOUPPER
"
${
PACKAGE_NAME
}
"
PACKAGE_PREFIX
)
# convert file path on Windows with back slashes to path with forward slashes
# otherwise this causes an issue with the cmake_install.cmake script
file
(
TO_CMAKE_PATH
"
${
CMAKE_INSTALL_PREFIX
}
"
CMAKE_INSTALL_PREFIX
)
# ----------------------------------------------------------------------------
# options
...
...
@@ -196,6 +200,7 @@ endif ()
gflags_define
(
STRING INCLUDE_DIR
"Name of include directory of installed header files relative to CMAKE_INSTALL_PREFIX/include/"
"
${
PACKAGE_NAME
}
"
)
gflags_property
(
INCLUDE_DIR ADVANCED TRUE
)
file
(
TO_CMAKE_PATH
"
${
INCLUDE_DIR
}
"
INCLUDE_DIR
)
if
(
IS_ABSOLUTE INCLUDE_DIR
)
message
(
FATAL_ERROR
"[GFLAGS_]INCLUDE_DIR must be a path relative to CMAKE_INSTALL_PREFIX/include/"
)
endif
()
...
...
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