Skip to content

Commit 953ff8b

Browse files
bmehta001Copilot
andcommitted
Quote functest configure_file paths
Quote the optional ECS test.json configure_file input and output paths so CMake handles source or build directories that contain spaces. Files changed: - tests/functests/CMakeLists.txt Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent c6ae85e commit 953ff8b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/functests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ if (EXISTS "${CMAKE_SOURCE_DIR}/lib/modules/exp/tests")
4141
${CMAKE_SOURCE_DIR}/lib/modules/exp/tests/functests/ECSConfigCacheFuncTests.cpp
4242
)
4343
if (EXISTS "${CMAKE_SOURCE_DIR}/lib/modules/exp/tests/functests/test.json")
44-
configure_file(${CMAKE_SOURCE_DIR}/lib/modules/exp/tests/functests/test.json ${CMAKE_BINARY_DIR}/test.json COPYONLY)
44+
configure_file("${CMAKE_SOURCE_DIR}/lib/modules/exp/tests/functests/test.json" "${CMAKE_BINARY_DIR}/test.json" COPYONLY)
4545
endif()
4646
endif()
4747

0 commit comments

Comments
 (0)