set(OPENEXR_PREV_MODULE_PATH ${CMAKE_MODULE_PATH}) list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}) if(NOT OpenEXR_LIBRARIES OR OPENEXR_LIBRARIES) _find_package(${ARGS}) endif() set(CMAKE_MODULE_PATH ${OPENEXR_PREV_MODULE_PATH})