]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
CMake: Change one CMAKE_CURRENT_SOURCE_DIR to CMAKE_CURRENT_LIST_DIR.
authorLasse Collin <lasse.collin@tukaani.org>
Thu, 26 Oct 2023 18:44:42 +0000 (21:44 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Thu, 26 Oct 2023 18:46:06 +0000 (21:46 +0300)
In this case they have identical values.

CMakeLists.txt

index 82cdde210b958a2370b9fc669092801f1dd2e14f..ac426c4433a34435fa3d388b9c4082ad4f4d1bc1 100644 (file)
@@ -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()