Skip to content

Commit

Permalink
Move fatal error after useful debug output (d'oh!)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhx committed Jun 6, 2021
1 parent 626b8c0 commit c97105f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/version.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ execute_process(
if((NOT "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${GIT_TOPLEVEL}")
OR ("${PRJ_GIT_REV}" STREQUAL ""))
if(NOT EXISTS ${VERSION_SRC_FILE} OR NOT EXISTS ${VERSION_HDR_FILE})
message(FATAL_ERROR "missing version files")
message("CMAKE_CURRENT_SOURCE_DIR: ${CMAKE_CURRENT_SOURCE_DIR}")
message("GIT_TOPLEVEL: ${GIT_TOPLEVEL}")
message("PRJ_GIT_REV: ${PRJ_GIT_REV}")
message(FATAL_ERROR "missing version files")
endif()
else()
execute_process(
Expand Down

0 comments on commit c97105f

Please sign in to comment.