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
9e937e80
Commit
9e937e80
authored
Mar 24, 2015
by
Andreas Schuh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#105 Add gflags_SHARED and gflags_NOTHREADED gflags-config.cmake options
parent
a9b983a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
2 deletions
+34
-2
config.cmake.in
cmake/config.cmake.in
+34
-2
No files found.
cmake/config.cmake.in
View file @
9e937e80
...
...
@@ -20,8 +20,40 @@ get_filename_component (_INSTALL_PREFIX "${CMAKE_CURRENT_LIST_DIR}/@INSTALL_PREF
# manually to the include search path for targets which link to gflags.
set (@PACKAGE_NAME@_INCLUDE_DIR "${_INSTALL_PREFIX}/@INCLUDE_INSTALL_DIR@")
# gflags library
set (@PACKAGE_NAME@_LIBRARIES gflags)
# default settings
if (NOT DEFINED @PACKAGE_NAME@_SHARED)
if (TARGET @PACKAGE_NAME@-static OR TARGET @PACKAGE_NAME@_nothreads-static)
set (@PACKAGE_NAME@_SHARED FALSE)
else ()
set (@PACKAGE_NAME@_SHARED TRUE)
endif ()
endif ()
if (NOT DEFINED @PACKAGE_NAME@_NOTHREADS)
if (TARGET @PACKAGE_NAME@-static OR TARGET @PACKAGE_NAME@-shared)
set (@PACKAGE_NAME@_NOTHREADS FALSE)
else ()
set (@PACKAGE_NAME@_NOTHREADS TRUE)
endif ()
endif ()
# choose imported library target
if (@PACKAGE_NAME@_SHARED)
if (@PACKAGE_NAME@_NOTHREADS)
set (@PACKAGE_NAME@_LIBRARIES @PACKAGE_NAME@_nothreads-shared)
else ()
set (@PACKAGE_NAME@_LIBRARIES @PACKAGE_NAME@-shared)
endif ()
else ()
if (@PACKAGE_NAME@_NOTHREADS)
set (@PACKAGE_NAME@_LIBRARIES @PACKAGE_NAME@_nothreads-static)
else ()
set (@PACKAGE_NAME@_LIBRARIES @PACKAGE_NAME@-static)
endif ()
endif ()
if (NOT TARGET ${@PACKAGE_NAME@_LIBRARIES})
message (FATAL_ERROR "Your @PACKAGE_NAME@ installation does not contain a ${@PACKAGE_NAME@_LIBRARIES} library!"
" Try a different combination of @PACKAGE_NAME@_SHARED and @PACKAGE_NAME@_NOTHREADS.")
endif ()
# unset private variables
unset (_INSTALL_PREFIX)
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