Changed: New macro FIX_PACKAGE_OPTIONS

--HG--
branch : develop
hg/compatibility-develop
kervala 6 years ago
parent 1380a94f5d
commit 6da051e1a8

@ -38,6 +38,21 @@ MACRO(PARSE_VERSION_OTHER FILENAME)
ENDIF() ENDIF()
ENDMACRO() ENDMACRO()
# macro to define FIND_PACKAGE options with a different package name
MACRO(FIX_PACKAGE_OPTIONS OLDNAME NEWNAME)
# append other options if needed
SET(_OPTIONS COMPONENTS REQUIRED QUIETLY)
# process each options
FOREACH(_OPTION ${_OPTIONS})
SET(OLD_OPTION ${OLDNAME}_FIND_${_OPTION})
IF(DEFINED )
SET(NEW_OPTION ${NEWNAME}_FIND_${_OPTION})
SET(${NEW_OPTION} ${OLD_OPTION})
ENDIF()
ENDFOREACH()
ENDMACRO()
MACRO(FIND_PACKAGE_HELPER NAME INCLUDE) MACRO(FIND_PACKAGE_HELPER NAME INCLUDE)
# Looks for a directory containing NAME. # Looks for a directory containing NAME.
# #

Loading…
Cancel
Save