Skip to content

Commit

Permalink
Merge branch 'main' into user/ankamat-msft/gettemppath2w
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomsonTan authored Dec 10, 2024
2 parents fde3497 + 7ebf7a0 commit 0c29663
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/functests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,14 @@ if (EXISTS ${CMAKE_SOURCE_DIR}/lib/modules/exp/tests)
${CMAKE_SOURCE_DIR}/lib/modules/exp/tests/functests/ECSConfigCacheFuncTests.cpp
)
if (EXISTS ${CMAKE_SOURCE_DIR}/lib/modules/exp/tests/functests/test.json)
file(COPY_FILE ${CMAKE_SOURCE_DIR}/lib/modules/exp/tests/functests/test.json ${CMAKE_BINARY_DIR}/test.json)
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.21")
# Use file(COPY_FILE ...) for CMake 3.21 and later
file(COPY_FILE ${CMAKE_SOURCE_DIR}/lib/modules/exp/tests/functests/test.json ${CMAKE_BINARY_DIR}/test.json)
else()
# Use file(COPY ...) as an alternative for older versions
file(COPY ${CMAKE_SOURCE_DIR}/lib/modules/exp/tests/functests/test.json
DESTINATION ${CMAKE_BINARY_DIR})
endif()
endif()
endif()

Expand Down

0 comments on commit 0c29663

Please sign in to comment.