Skip to content

Commit

Permalink
perf: simplify absolute path (#124)
Browse files Browse the repository at this point in the history
Signed-off-by: msclock <msclock@qq.com>
  • Loading branch information
msclock authored Sep 24, 2024
1 parent 05cd56b commit ab5e33f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmake/test/Test.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ endif()
include(CTest)

function(add_test_subdirectory src)
if(NOT IS_ABSOLUTE src)
cmake_path(ABSOLUTE_PATH src BASE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
OUTPUT_VARIABLE src)
endif()
cmake_path(ABSOLUTE_PATH src BASE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
message(STATUS "Adding tests from ${src}")
add_subdirectory(${src})
endfunction()

0 comments on commit ab5e33f

Please sign in to comment.