-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
install unwind find module alongside glog
- Loading branch information
Showing
3 changed files
with
94 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
cmake_policy (PUSH) | ||
cmake_policy (SET CMP0057 NEW) | ||
|
||
if (CMAKE_VERSION VERSION_LESS 3.3) | ||
message (FATAL_ERROR "glog-modules.cmake requires the consumer " | ||
"to use CMake 3.3 (or newer)") | ||
endif (CMAKE_VERSION VERSION_LESS 3.3) | ||
|
||
set (glog_MODULE_PATH "@glog_FULL_CMake_DATADIR@") | ||
list (APPEND CMAKE_MODULE_PATH ${glog_MODULE_PATH}) | ||
|
||
if (NOT glog_MODULE_PATH IN_LIST CMAKE_MODULE_PATH) | ||
message (FATAL_ERROR "Cannot add '${glog_MODULE_PATH}' to " | ||
"CMAKE_MODULE_PATH. This will cause glog-config.cmake to fail at " | ||
"locating required find modules. Make sure CMAKE_MODULE_PATH is not a cache variable.") | ||
endif (NOT glog_MODULE_PATH IN_LIST CMAKE_MODULE_PATH) | ||
|
||
cmake_policy (POP) |