Skip to content

Commit

Permalink
GammaRayMacrosInternal.cmake - fix gammaray_ensure_submodule_exists
Browse files Browse the repository at this point in the history
Use CMAKE_SOURCE_DIR as the top-level
  • Loading branch information
Allen Winter committed Jul 26, 2024
1 parent 96660be commit c4eec80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/GammaRayMacrosInternal.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,11 @@ endmacro()
# Check if some required submodule is initialized
function(gammaray_ensure_submodule_exists submodule)
if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${submodule}/.git")
if(EXISTS "${appframework_SOURCE_DIR}/.git")
if(EXISTS "${CMAKE_SOURCE_DIR}/.git")
message(
FATAL_ERROR
"The git submodule ${submodule} is not initialized.\n"
"Please run the following command in the source directory (${appframework_SOURCE_DIR}):\n"
"Please run the following command in the source directory (${CMAKE_SOURCE_DIR}):\n"
" git submodule update --init --recursive ${CMAKE_CURRENT_SOURCE_DIR}/${submodule}\n"
)
else()
Expand Down

0 comments on commit c4eec80

Please sign in to comment.