projects
/
platform
/
upstream
/
glog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a92e1d9
)
Use target gflags instead of old VARIABLES
author
Mizux
<dev@mizux.net>
Thu, 4 Jan 2018 12:02:02 +0000
(13:02 +0100)
committer
GitHub
<noreply@github.com>
Thu, 4 Jan 2018 12:02:02 +0000
(13:02 +0100)
cmake/DetermineGflagsNamespace.cmake
patch
|
blob
|
history
diff --git
a/cmake/DetermineGflagsNamespace.cmake
b/cmake/DetermineGflagsNamespace.cmake
index 5f30267021f5b9018b9e3aeb6e1de7f57adcc8b4..25111a165bbf7d9f450bee9ff531a47c189ec694 100755
(executable)
--- a/
cmake/DetermineGflagsNamespace.cmake
+++ b/
cmake/DetermineGflagsNamespace.cmake
@@
-34,8
+34,8
@@
int main(int argc, char**argv)
try_compile (${VARIABLE}
"${CMAKE_BINARY_DIR}" "${_check_file}"
COMPILE_DEFINITIONS "${CMAKE_REQUIRED_DEFINITIONS}" -DGFLAGS_NAMESPACE=${_namespace}
- LINK_LIBRARIES
"${gflags_LIBRARIES}"
- CMAKE_FLAGS -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
"-DINCLUDE_DIRECTORIES:STRING=${gflags_INCLUDE_DIR}"
+ LINK_LIBRARIES
gflags
+ CMAKE_FLAGS -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
OUTPUT_VARIABLE OUTPUT)
if (${VARIABLE})