Skip to content

Commit f33911e

Browse files
committed
cmake: remove unused variable "CLAR_RESOURCES"
Once upon a time, the `CLAR_RESOURCES` variable was intended to set the `CLAR_RESOURCES` define. But actually, the define uses a wrong variable name by accident, hinting that its value cannot actually be used at all, as it is empty. Searching through the code base confirms the guess that the define is not used at all. Remove both the variable and definition.
1 parent 096a49c commit f33911e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -673,9 +673,7 @@ IF (BUILD_CLAR)
673673

674674
SET(CLAR_FIXTURES "${CMAKE_CURRENT_SOURCE_DIR}/tests/resources/")
675675
SET(CLAR_PATH "${CMAKE_CURRENT_SOURCE_DIR}/tests")
676-
SET(CLAR_RESOURCES "${CMAKE_CURRENT_SOURCE_DIR}/tests/resources" CACHE PATH "Path to test resources.")
677676
ADD_DEFINITIONS(-DCLAR_FIXTURE_PATH=\"${CLAR_FIXTURES}\")
678-
ADD_DEFINITIONS(-DCLAR_RESOURCES=\"${TEST_RESOURCES}\")
679677
ADD_DEFINITIONS(-DCLAR_TMPDIR=\"libgit2_tests\")
680678

681679
INCLUDE_DIRECTORIES(${CLAR_PATH})

0 commit comments

Comments
 (0)