CMAKE_SOURCE_DIR -> CMAKE_CURRENT_SOURCE_DIR
Signed-off-by: Dan Rose <dan@digilabs.io>
This commit is contained in:
parent
860a6aadae
commit
76fa688086
3 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.5)
|
||||||
if (NOT TARGET CycloneDDS::ddsc)
|
if (NOT TARGET CycloneDDS::ddsc)
|
||||||
# Find the CycloneDDS package. If it is not in a default location, try
|
# Find the CycloneDDS package. If it is not in a default location, try
|
||||||
# finding it relative to the example where it most likely resides.
|
# finding it relative to the example where it most likely resides.
|
||||||
find_package(CycloneDDS REQUIRED PATHS "${CMAKE_SOURCE_DIR}/../../")
|
find_package(CycloneDDS REQUIRED PATHS "${CMAKE_CURRENT_SOURCE_DIR}/../../")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# This is a convenience function, provided by the CycloneDDS package,
|
# This is a convenience function, provided by the CycloneDDS package,
|
||||||
|
|
|
@ -14,7 +14,7 @@ cmake_minimum_required(VERSION 3.5)
|
||||||
if (NOT TARGET CycloneDDS::ddsc)
|
if (NOT TARGET CycloneDDS::ddsc)
|
||||||
# Find the CycloneDDS package. If it is not in a default location, try
|
# Find the CycloneDDS package. If it is not in a default location, try
|
||||||
# finding it relative to the example where it most likely resides.
|
# finding it relative to the example where it most likely resides.
|
||||||
find_package(CycloneDDS REQUIRED PATHS "${CMAKE_SOURCE_DIR}/../../")
|
find_package(CycloneDDS REQUIRED PATHS "${CMAKE_CURRENT_SOURCE_DIR}/../../")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# This is a convenience function, provided by the CycloneDDS package,
|
# This is a convenience function, provided by the CycloneDDS package,
|
||||||
|
|
|
@ -14,7 +14,7 @@ cmake_minimum_required(VERSION 3.5)
|
||||||
if (NOT TARGET CycloneDDS::ddsc)
|
if (NOT TARGET CycloneDDS::ddsc)
|
||||||
# Find the CycloneDDS package. If it is not in a default location, try
|
# Find the CycloneDDS package. If it is not in a default location, try
|
||||||
# finding it relative to the example where it most likely resides.
|
# finding it relative to the example where it most likely resides.
|
||||||
find_package(CycloneDDS REQUIRED PATHS "${CMAKE_SOURCE_DIR}/../../")
|
find_package(CycloneDDS REQUIRED PATHS "${CMAKE_CURRENT_SOURCE_DIR}/../../")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# This is a convenience function, provided by the CycloneDDS package,
|
# This is a convenience function, provided by the CycloneDDS package,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue