mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-21 10:13:43 +03:00
0030456: Make OCCT_CHECK_AND_UNSET_GROUP more general
Modify OCCT_CHECK_AND_UNSET_GROUP function to allow unset any group of variables
This commit is contained in:
parent
89073268fd
commit
620a6baa59
@ -12,18 +12,12 @@ macro (OCCT_CHECK_AND_UNSET VARNAME)
|
|||||||
endif()
|
endif()
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
macro (OCCT_CHECK_AND_UNSET_GROUP VARNAME)
|
macro (OCCT_CHECK_AND_UNSET_GROUP GROUPNAME)
|
||||||
OCCT_CHECK_AND_UNSET ("${VARNAME}_DIR")
|
get_cmake_property(VARS VARIABLES)
|
||||||
|
string (REGEX MATCHALL "(^|;)${GROUPNAME}[A-Za-z0-9_]*" GROUPNAME_VARS "${VARS}")
|
||||||
OCCT_CHECK_AND_UNSET ("${VARNAME}_INCLUDE_DIR")
|
foreach(GROUPNAME_VAR ${GROUPNAME_VARS})
|
||||||
|
OCCT_CHECK_AND_UNSET(${GROUPNAME_VAR})
|
||||||
OCCT_CHECK_AND_UNSET ("${VARNAME}_LIBRARY")
|
endforeach()
|
||||||
OCCT_CHECK_AND_UNSET ("${VARNAME}_LIBRARY_DIR")
|
|
||||||
|
|
||||||
if (WIN32)
|
|
||||||
OCCT_CHECK_AND_UNSET ("${VARNAME}_DLL")
|
|
||||||
OCCT_CHECK_AND_UNSET ("${VARNAME}_DLL_DIR")
|
|
||||||
endif()
|
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
macro (OCCT_CHECK_AND_UNSET_INSTALL_DIR_SUBDIRS)
|
macro (OCCT_CHECK_AND_UNSET_INSTALL_DIR_SUBDIRS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user