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>
This commit is contained in:
Jeremie Guichard 2017-02-25 22:27:43 +07:00 committed by Dirk Hohndel
parent c2997c33c7
commit 7b08f8d23c
3 changed files with 49 additions and 6 deletions

View file

@ -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()