summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeFindPackageMode.cmake
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2011-08-15 22:22:17 (GMT)
committerAlex Neundorf <neundorf@kde.org>2011-08-15 22:22:17 (GMT)
commite589589ab18daabc863061fac515adc2b1ae8d55 (patch)
tree0857bd25a0a654c62f3b630dfedaeb544273c45d /Modules/CMakeFindPackageMode.cmake
parentaecfc1fd1045fef4af58a16782c2272dd5825aa5 (diff)
downloadCMake-e589589ab18daabc863061fac515adc2b1ae8d55.zip
CMake-e589589ab18daabc863061fac515adc2b1ae8d55.tar.gz
CMake-e589589ab18daabc863061fac515adc2b1ae8d55.tar.bz2
Rename helper macros print_compile_flags() to set_compile_flags_var()
The same for print_link_flags(), it is now set_link_flags_var(). Both macros don't print anything anymore, this was only in the beginning. Alex
Diffstat (limited to 'Modules/CMakeFindPackageMode.cmake')
-rw-r--r--Modules/CMakeFindPackageMode.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/CMakeFindPackageMode.cmake b/Modules/CMakeFindPackageMode.cmake
index 2ce4fe6..e4d085d 100644
--- a/Modules/CMakeFindPackageMode.cmake
+++ b/Modules/CMakeFindPackageMode.cmake
@@ -84,7 +84,7 @@ set(CMAKE_${LANGUAGE}_COMPILER_ID "${COMPILER_ID}")
include(CMake${LANGUAGE}Information)
-function(print_compile_flags _packageName)
+function(set_compile_flags_var _packageName)
string(TOUPPER "${_packageName}" PACKAGE_NAME)
# Check the following variables:
# FOO_INCLUDE_DIRS
@@ -125,7 +125,7 @@ function(print_compile_flags _packageName)
endfunction()
-function(print_link_flags _packageName)
+function(set_link_flags_var _packageName)
string(TOUPPER "${_packageName}" PACKAGE_NAME)
# Check the following variables:
# FOO_LIBRARIES
@@ -160,9 +160,9 @@ if(${NAME}_FOUND OR ${UPPERCASE_NAME}_FOUND)
if("${MODE}" STREQUAL "EXIST")
# do nothing
elseif("${MODE}" STREQUAL "COMPILE")
- print_compile_flags(${NAME})
+ set_compile_flags_var(${NAME})
elseif("${MODE}" STREQUAL "LINK")
- print_link_flags(${NAME})
+ set_link_flags_var(${NAME})
else("${MODE}" STREQUAL "LINK")
message(FATAL_ERROR "Invalid mode argument ${MODE} given.")
endif()