Skip to content

Commit fd4492c

Browse files
committed
cleanup cmake config
1 parent 703e9a2 commit fd4492c

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

CMakeLists.txt

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ else()
99
set(NOT_SUBPROJECT OFF)
1010
endif()
1111

12-
option(RAPIDFUZZ_DEVELOPMENT_BUILD "Build tests, enable warnings, enable Werror, etc" OFF)
13-
1412
option(RAPIDFUZZ_BUILD_TESTING "Build tests" OFF)
1513
option(RAPIDFUZZ_BUILD_BENCHMARKS "Build benchmarks" OFF)
1614
option(RAPIDFUZZ_BUILD_FUZZERS "Build fuzzers" OFF)
@@ -29,11 +27,11 @@ include(GNUInstallDirs)
2927
include(CMakePackageConfigHelpers)
3028

3129
# Basic paths
32-
set(RAPIDFUZZ_DIR ${CMAKE_CURRENT_SOURCE_DIR})
33-
set(SOURCES_DIR ${RAPIDFUZZ_DIR}/rapidfuzz)
34-
set(TEST_DIR ${RAPIDFUZZ_DIR}/test)
35-
set(BENCHMARK_DIR ${RAPIDFUZZ_DIR}/tests/bench)
36-
set(EXAMPLES_DIR ${RAPIDFUZZ_DIR}/examples)
30+
set(BASE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
31+
set(SOURCES_DIR ${BASE_DIR}/rapidfuzz)
32+
set(TEST_DIR ${BASE_DIR}/test)
33+
set(BENCHMARK_DIR ${BASE_DIR}/tests/bench)
34+
set(EXAMPLES_DIR ${BASE_DIR}/examples)
3735

3836
# Please keep these ordered alphabetically
3937
set(PUBLIC_HEADERS
@@ -137,7 +135,7 @@ if (NOT_SUBPROJECT)
137135
DESTINATION
138136
${RAPIDFUZZ_CMAKE_CONFIG_DESTINATION}
139137
)
140-
138+
141139
# CPack/CMake started taking the package version from project version 3.12
142140
# So we need to set the version manually for older CMake versions
143141
if(${CMAKE_VERSION} VERSION_LESS "3.12.0")

0 commit comments

Comments
 (0)