Skip to content

Commit

Permalink
Add check for existance of prebuild script in CMakeLists.txt, so if u…
Browse files Browse the repository at this point in the history
…ser forgot to clone recursively they don't get silent failures
  • Loading branch information
mkavulich committed Nov 16, 2023
1 parent fb915d8 commit 140bfc3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scm/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 140bfc3

Please sign in to comment.