diff options
author | Allen Winter <winter@kde.org> | 2006-08-13 23:46:33 +0000 |
---|---|---|
committer | Allen Winter <winter@kde.org> | 2006-08-13 23:46:33 +0000 |
commit | 02e5bf8e3d7cc2474f1cfa11aa0bea59efc083d2 (patch) | |
tree | dbe194e401f1564a38e6ca2dd75c08960c1d28db /modules/MacroLogFeature.cmake | |
parent | 8f34953a167e84a36e7f604335f4a69f2ed713d1 (diff) | |
download | extra-cmake-modules-02e5bf8e3d7cc2474f1cfa11aa0bea59efc083d2.tar.gz extra-cmake-modules-02e5bf8e3d7cc2474f1cfa11aa0bea59efc083d2.tar.bz2 |
add a new init() macro that should go at the top of each module's
toplevel CMakeLists.txt file. init() basically erases any temp
files that are left around from previous runs (like if the user
hit ^C before cmake completed)
svn path=/trunk/KDE/kdelibs/; revision=572796
Diffstat (limited to 'modules/MacroLogFeature.cmake')
-rw-r--r-- | modules/MacroLogFeature.cmake | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/modules/MacroLogFeature.cmake b/modules/MacroLogFeature.cmake index 99c4bb5c..3b92801a 100644 --- a/modules/MacroLogFeature.cmake +++ b/modules/MacroLogFeature.cmake @@ -1,4 +1,7 @@ -# This file defines two macros: +# This file defines the Feature Logging macros. +# +# MACRO_INIT_LOG_FEATURE() +# Call this to initialize the feature logging facility. # # MACRO_LOG_FEATURE(VAR FEATURE DESCRIPTION URL [REQUIRED [MIN_VERSION [COMMENTS]]]) # Logs the information so that it can be displayed at the end @@ -18,6 +21,7 @@ # Example: # # INCLUDE(MacroLogFeature) +# MACRO_INIT_LOG_FEATURE() # # FIND_PACKAGE(JPEG) # MACRO_LOG_FEATURE(JPEG_FOUND "libjpeg" "Support JPEG images" "http://www.ijg.org" TRUE "3.2a" "") @@ -60,6 +64,25 @@ MACRO(MACRO_LOG_FEATURE _var _package _description _url ) # _required _minvers _ ENDMACRO(MACRO_LOG_FEATURE) +MACRO(MACRO_INIT_LOG_FEATURE) + + SET(_file ${CMAKE_BINARY_DIR}/MissingRequirements.txt ) + IF (EXISTS ${_file}) + FILE(REMOVE ${_file}) + ENDIF (EXISTS ${_file}) + + SET(_file ${CMAKE_BINARY_DIR}/EnabledFeatures.txt ) + IF (EXISTS ${_file}) + FILE(REMOVE ${_file}) + ENDIF (EXISTS ${_file}) + + SET(_file ${CMAKE_BINARY_DIR}/DisabledFeatures.txt ) + IF (EXISTS ${_file}) + FILE(REMOVE ${_file}) + ENDIF (EXISTS ${_file}) + +ENDMACRO(MACRO_INIT_LOG_FEATURE) + MACRO(MACRO_DISPLAY_FEATURE_LOG) SET(_file ${CMAKE_BINARY_DIR}/MissingRequirements.txt ) |