Commit f33911e517d93f93b814151dafe6149df9c6c01f

Patrick Steinhardt 2017-06-23T18:32:48

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
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d3e172b..fb2f1ea 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -673,9 +673,7 @@ IF (BUILD_CLAR)
 
 	SET(CLAR_FIXTURES "${CMAKE_CURRENT_SOURCE_DIR}/tests/resources/")
 	SET(CLAR_PATH "${CMAKE_CURRENT_SOURCE_DIR}/tests")
-	SET(CLAR_RESOURCES "${CMAKE_CURRENT_SOURCE_DIR}/tests/resources" CACHE PATH "Path to test resources.")
 	ADD_DEFINITIONS(-DCLAR_FIXTURE_PATH=\"${CLAR_FIXTURES}\")
-	ADD_DEFINITIONS(-DCLAR_RESOURCES=\"${TEST_RESOURCES}\")
 	ADD_DEFINITIONS(-DCLAR_TMPDIR=\"libgit2_tests\")
 
 	INCLUDE_DIRECTORIES(${CLAR_PATH})