diff options
author | Jeremie Guichard <djebrest@gmail.com> | 2017-02-25 22:27:43 +0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-02-25 09:24:23 -0800 |
commit | 7b08f8d23c64b05ec019311347f52bbbd181c4a6 (patch) | |
tree | c1513b29bdc2790f6d47fcc684e6bc4284d5a752 /CMakeLists.txt | |
parent | c2997c33c722ab075592ad0c5cb766a52aa7c90c (diff) | |
download | subsurface-7b08f8d23c64b05ec019311347f52bbbd181c4a6.tar.gz |
Move CMake variables printing into a utility macro
Added cmake_variables_helper.cmake providing 2 helpers
- print_variable
- print_all_variables
Signed-off-by: Jeremie Guichard <djebrest@gmail.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9a9e144ad..9998b76d2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -112,6 +112,7 @@ endif() include(cmake/Modules/HandleFtdiSupport.cmake) include(cmake/Modules/HandleVersionGeneration.cmake) include(cmake/Modules/RunOnBuildDir.cmake) +include(cmake/Modules/cmake_variables_helper.cmake) pkg_config_library(LIBXML libxml-2.0 REQUIRED) pkg_config_library(LIBSQLITE3 sqlite3 REQUIRED) @@ -467,9 +468,4 @@ if (MAKE_TESTS) endif() # useful for debugging CMake issues -# -# message(STATUS "print variables") -# get_cmake_property(_variableNames VARIABLES) -# foreach(_variableName ${_variableNames}) -# message(STATUS "${_variableName}=${${_variableName}}") -# endforeach() +# print_all_variables() |