File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,8 @@ project(rsp-cmake-scripts
5050)
5151
5252# Ensure parent project has modules and other properties available.
53- if (NOT CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME )
53+ #if(NOT CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
54+ if (NOT PROJECT_IS_TOP_LEVEL)
5455 set (CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH} " PARENT_SCOPE)
5556 set ("${PROJECT_NAME} _VERSION" "${PROJECT_VERSION} " PARENT_SCOPE)
5657 set ("${PROJECT_NAME} _SEMVER" "${version_SEMVER} " PARENT_SCOPE)
@@ -62,7 +63,7 @@ endif()
6263
6364include ("dependencies.cmake" )
6465
65- if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME )
66+ if (PROJECT_IS_TOP_LEVEL )
6667 include ("dev-dependencies.cmake" )
6768endif ()
6869
@@ -82,7 +83,7 @@ endif ()
8283# Post-dependencies project setup
8384# -------------------------------------------------------------------------------------------------------------- #
8485
85- if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME )
86+ if (PROJECT_IS_TOP_LEVEL )
8687 include ("rsp/debug" )
8788 include ("rsp/logging" )
8889endif ()
You can’t perform that action at this time.
0 commit comments