From 140bfc3f4ba9d44fad7e16df50699bc7af2c1219 Mon Sep 17 00:00:00 2001 From: "Michael Kavulich, Jr" Date: Thu, 16 Nov 2023 15:35:27 -0700 Subject: [PATCH] Add check for existance of prebuild script in CMakeLists.txt, so if user forgot to clone recursively they don't get silent failures --- scm/src/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scm/src/CMakeLists.txt b/scm/src/CMakeLists.txt index b7c15b010..f3b5f3bf4 100644 --- a/scm/src/CMakeLists.txt +++ b/scm/src/CMakeLists.txt @@ -30,6 +30,9 @@ endif() message (STATUS "Running ccpp_prebuild.py for CCPP") # Make the directories where the ccpp_prebuild.py script wants to write caps and make snippets file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/ccpp/physics/physics) +if (NOT EXISTS "ccpp/framework/scripts/ccpp_prebuild.py") + message( FATAL_ERROR "ccpp_prebuild.py script does not exist, did you check out the code recursively?" ) +endif() if (${CMAKE_BUILD_TYPE} MATCHES "Debug") execute_process( COMMAND ccpp/framework/scripts/ccpp_prebuild.py --config=ccpp/config/ccpp_prebuild_config.py ${_ccpp_suites_arg} --builddir=${CMAKE_CURRENT_BINARY_DIR} --debug --verbose