ref: e25a0430c08d9618b37244a1c4dc4b0877bd5a14
parent: bb689b148f6224eb71fdc2430e76ae85171c095a
author: Alexander Grund <alexander.grund@tu-dresden.de>
date: Fri Jul 26 05:45:39 EDT 2019
Shorten name of variable
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,14 +2,14 @@
project(libsamplerate VERSION 0.1.9 LANGUAGES C)
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
- set(LIBSAMPLERATE_IS_ROOT_PROJECT ON)
+ set(IS_ROOT_PROJECT ON)
else()
- set(LIBSAMPLERATE_IS_ROOT_PROJECT OFF)
+ set(IS_ROOT_PROJECT OFF)
endif()
-option(LIBSAMPLERATE_TESTS "Enable to generate test targets" ${LIBSAMPLERATE_IS_ROOT_PROJECT})
-option(LIBSAMPLERATE_EXAMPLES "Enable to generate examples" ${LIBSAMPLERATE_IS_ROOT_PROJECT})
-option(LIBSAMPLERATE_INSTALL "Enable to add install directives" ${LIBSAMPLERATE_IS_ROOT_PROJECT})
+option(LIBSAMPLERATE_TESTS "Enable to generate test targets" ${IS_ROOT_PROJECT})
+option(LIBSAMPLERATE_EXAMPLES "Enable to generate examples" ${IS_ROOT_PROJECT})
+option(LIBSAMPLERATE_INSTALL "Enable to add install directives" ${IS_ROOT_PROJECT})
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)