Skip to content

Commit f0f8832

Browse files
authored
Fixing CMake for Fast-DDS use as submodule (#3136)
Signed-off-by: Miguel Barro <[email protected]> Signed-off-by: Miguel Barro <[email protected]>
1 parent e51c9a7 commit f0f8832

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/cpp/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,8 @@ if(NOT CMAKE_ATOMIC_LIB)
396396
endif()
397397

398398
try_run(SM_RUN_RESULT SM_COMPILE_RESULT
399-
"${CMAKE_CURRENT_BINARY_DIR}/shmtest"
400-
"${CMAKE_SOURCE_DIR}/cmake/modules/check_shared_mutex_priority.cpp"
399+
"${PROJECT_BINARY_DIR}/shmtest"
400+
"${PROJECT_SOURCE_DIR}/cmake/modules/check_shared_mutex_priority.cpp"
401401
LINK_LIBRARIES ${CMAKE_THREAD_LIBS_INIT} ${CMAKE_ATOMIC_LIB}
402402
RUN_OUTPUT_VARIABLE SM_RUN_OUTPUT)
403403

@@ -520,8 +520,8 @@ if(MSVC OR MSVC_IDE)
520520

521521
# replace the values in the manifest template
522522
configure_file(
523-
"${CMAKE_SOURCE_DIR}/cmake/packaging/windows/fastrtps.manifest.in"
524-
"${CMAKE_CURRENT_BINARY_DIR}/fastrtps.manifest"
523+
"${PROJECT_SOURCE_DIR}/cmake/packaging/windows/fastrtps.manifest.in"
524+
"${PROJECT_BINARY_DIR}/fastrtps.manifest"
525525
@ONLY
526526
)
527527

0 commit comments

Comments
 (0)