From 61355b7d739c169d6aa8ab879a083d1b9ad352d5 Mon Sep 17 00:00:00 2001 From: Sebastian Stammler Date: Sat, 1 Sep 2018 22:27:29 +0200 Subject: [PATCH] cmake: Add prefix to public options --- CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0b42db3..e1f789e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,17 +3,17 @@ project (valijson) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake") -option(INSTALL_HEADERS "Install valijson Headers." FALSE) -option(BUILD_EXAMPLES "Build valijson Examples." FALSE) -option(BUILD_TESTS "Build valijson Tests." TRUE) +option(valijson_INSTALL_HEADERS "Install valijson Headers." FALSE) +option(valijson_BUILD_EXAMPLES "Build valijson Examples." FALSE) +option(valijson_BUILD_TESTS "Build valijson Tests." TRUE) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") -if(INSTALL_HEADERS) +if(valijson_INSTALL_HEADERS) install(DIRECTORY include/ DESTINATION include) endif() -if(NOT BUILD_TESTS AND NOT BUILD_EXAMPLES) +if(NOT valijson_BUILD_TESTS AND NOT valijson_BUILD_EXAMPLES) return() endif()