James Bigler wrote:
Is there an expression similar to the one for variables to determine if a macro is defined?MACRO(TEST) MESSAGE("TEST is defined") ENDMACRO(TEST) IF(DEFINED TEST) TEST() ELSE(DEFINED TEST) MESSAGE("TEST is not defined") ENDIF(DEFINED TEST)
I don't think there is but you can get a list of all defined macros:
get_cmake_property(all_macros MACROS)
signature.asc
Description: OpenPGP digital signature
_______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
