list(FIND ARGS "COMPONENTS" COMPONENTS_IDX) if(NOT COMPONENTS_IDX EQUAL -1) _find_package(${ARGS} COMPONENTS data) else() _find_package(${ARGS}) endif()