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
28f50e0f
Unverified
Commit
28f50e0f
authored
Jan 25, 2019
by
Andreas Schuh
Committed by
GitHub
Jan 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: Install pkgconfig file only when INSTALL_HEADERS option is ON
parent
10054852
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
CMakeLists.txt
CMakeLists.txt
+4
-5
No files found.
CMakeLists.txt
View file @
28f50e0f
...
...
@@ -568,11 +568,10 @@ if (INSTALL_HEADERS)
if
(
UNIX
)
install
(
PROGRAMS src/gflags_completions.sh DESTINATION
${
RUNTIME_INSTALL_DIR
}
)
endif
()
endif
()
if
(
PKGCONFIG_INSTALL_DIR
)
configure_file
(
"cmake/package.pc.in"
"
${
PROJECT_BINARY_DIR
}
/
${
PACKAGE_NAME
}
.pc"
@ONLY
)
install
(
FILES
"
${
PROJECT_BINARY_DIR
}
/
${
PACKAGE_NAME
}
.pc"
DESTINATION
"
${
PKGCONFIG_INSTALL_DIR
}
"
)
if
(
PKGCONFIG_INSTALL_DIR
)
configure_file
(
"cmake/package.pc.in"
"
${
PROJECT_BINARY_DIR
}
/
${
PACKAGE_NAME
}
.pc"
@ONLY
)
install
(
FILES
"
${
PROJECT_BINARY_DIR
}
/
${
PACKAGE_NAME
}
.pc"
DESTINATION
"
${
PKGCONFIG_INSTALL_DIR
}
"
)
endif
()
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