diff --git a/SuperBuild/CMake/ExternalProject-Setup.cmake b/SuperBuild/CMake/ExternalProject-Setup.cmake index 590dec5e..19a7186b 100644 --- a/SuperBuild/CMake/ExternalProject-Setup.cmake +++ b/SuperBuild/CMake/ExternalProject-Setup.cmake @@ -4,7 +4,7 @@ function(SETUP_EXTERNAL_PROJECT name version force_build) if(NOT ${force_build}) - find_package(Ceres ${version} EXACT QUIET) + find_package(${name} ${version} EXACT QUIET) if(${${name}_FOUND}) message(STATUS "${name} ${${name}_VERSION} found") @@ -18,4 +18,10 @@ function(SETUP_EXTERNAL_PROJECT name version force_build) include(External-${name}) endif() -endfunction() \ No newline at end of file +endfunction() + +macro(SETUP_EXTERNAL_PROJECT_CUSTOM name) + set(ADD_LIB_MSG "--- Adding External project") + message(STATUS "${name} force build ${ADD_LIB_MSG}") + include(External-${name}) +endmacro() \ No newline at end of file