diff --git a/Tools/CMake/AMReXBuildInfo.cmake b/Tools/CMake/AMReXBuildInfo.cmake index 9afbc2ceaf4..0b87f053c2e 100644 --- a/Tools/CMake/AMReXBuildInfo.cmake +++ b/Tools/CMake/AMReXBuildInfo.cmake @@ -38,7 +38,7 @@ include(AMReXTargetHelpers) # # Set paths # -if (AMReX_FOUND) +if (AMReX_DIR) # AMReX is pre-installed and used as a library if (WIN32) # see AMReXInstallHelpers.cmake string(REPLACE "/cmake/AMReXCMakeModules" "" @@ -56,7 +56,7 @@ else () endif () set(AMREX_TOP_DIR "${AMREX_TOP_DIR_DEFAULT}" CACHE INTERNAL "Top level AMReX directory") -if (AMReX_FOUND) +if (AMReX_DIR) # AMReX is pre-installed and used as a library set(AMREX_C_SCRIPTS_DIR "${AMREX_TOP_DIR}/share/amrex/C_scripts" CACHE INTERNAL "Path to AMReX' C_scripts dir")