diff options
author | Alex Neundorf <neundorf@kde.org> | 2011-07-09 18:45:14 +0200 |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2011-07-09 18:45:14 +0200 |
commit | c4b5803fe5b6c93e4e2828fc8472a0f9d81a0bea (patch) | |
tree | 17e6d15cbab1a04c49e7ce8c97797426acf308bd /modules | |
parent | 0de2a0ca6b6a1a162b0c00ee41df3a1fa89c173a (diff) | |
download | extra-cmake-modules-c4b5803fe5b6c93e4e2828fc8472a0f9d81a0bea.tar.gz extra-cmake-modules-c4b5803fe5b6c93e4e2828fc8472a0f9d81a0bea.tar.bz2 |
also rename the macro macro_optional_add_subdirectory() to
ecm_optional_add_subdirectory()
make it a function, not a macro anymore
Alex
Diffstat (limited to 'modules')
-rw-r--r-- | modules/ECMOptionalAddSubdirectory.cmake | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/ECMOptionalAddSubdirectory.cmake b/modules/ECMOptionalAddSubdirectory.cmake index ec0ea30a..e1733bcc 100644 --- a/modules/ECMOptionalAddSubdirectory.cmake +++ b/modules/ECMOptionalAddSubdirectory.cmake @@ -1,11 +1,11 @@ -# - MACRO_OPTIONAL_ADD_SUBDIRECTORY() combines ADD_SUBDIRECTORY() with an OPTION() -# MACRO_OPTIONAL_ADD_SUBDIRECTORY( <dir> ) -# If you use MACRO_OPTIONAL_ADD_SUBDIRECTORY() instead of ADD_SUBDIRECTORY(), +# - ECM_OPTIONAL_ADD_SUBDIRECTORY() combines ADD_SUBDIRECTORY() with an OPTION() +# ECM_OPTIONAL_ADD_SUBDIRECTORY( <dir> ) +# If you use ECM_OPTIONAL_ADD_SUBDIRECTORY() instead of ADD_SUBDIRECTORY(), # this will have two effects # 1 - CMake will not complain if the directory doesn't exist # This makes sense if you want to distribute just one of the subdirs # in a source package, e.g. just one of the subdirs in kdeextragear. -# 2 - If the directory exists, it will offer an option to skip the +# 2 - If the directory exists, it will offer an option to skip the # subdirectory. # This is useful if you want to compile only a subset of all # directories. @@ -22,7 +22,7 @@ # For details see the accompanying COPYING-CMAKE-SCRIPTS file. -MACRO (MACRO_OPTIONAL_ADD_SUBDIRECTORY _dir ) +FUNCTION (ECM_OPTIONAL_ADD_SUBDIRECTORY _dir ) GET_FILENAME_COMPONENT(_fullPath ${_dir} ABSOLUTE) IF(EXISTS ${_fullPath}/CMakeLists.txt) IF(DISABLE_ALL_OPTIONAL_SUBDIRECTORIES) @@ -38,4 +38,4 @@ MACRO (MACRO_OPTIONAL_ADD_SUBDIRECTORY _dir ) ADD_SUBDIRECTORY(${_dir}) ENDIF(BUILD_${_dir}) ENDIF(EXISTS ${_fullPath}/CMakeLists.txt) -ENDMACRO (MACRO_OPTIONAL_ADD_SUBDIRECTORY) +ENDFUNCTION (ECM_OPTIONAL_ADD_SUBDIRECTORY) |