From: Lasse Collin Date: Thu, 26 Oct 2023 18:44:42 +0000 (+0300) Subject: CMake: Change one CMAKE_CURRENT_SOURCE_DIR to CMAKE_CURRENT_LIST_DIR. X-Git-Tag: v5.5.1alpha~98 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08d12595f486890cf601b87f36ee0ddbce57728e;p=thirdparty%2Fxz.git CMake: Change one CMAKE_CURRENT_SOURCE_DIR to CMAKE_CURRENT_LIST_DIR. In this case they have identical values. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 82cdde21..ac426c44 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1498,7 +1498,7 @@ if(BUILD_TESTING) # # Set the return code for skipped tests to match Automake convention. set_tests_properties("${TEST}" PROPERTIES - ENVIRONMENT "srcdir=${CMAKE_CURRENT_LIST_DIR}/tests" + ENVIRONMENT "srcdir=${CMAKE_CURRENT_SOURCE_DIR}/tests" SKIP_RETURN_CODE 77 ) endforeach()