From d7fc289035ea810b7b396466c7620a564b30a53b Mon Sep 17 00:00:00 2001 From: Matt Williams Date: Sun, 15 Jul 2012 21:14:37 +0100 Subject: [PATCH] Convert CMake variables from YES/NO to ON/OFF --- CMakeLists.txt | 4 ++-- documentation/CMakeLists.txt | 4 ++-- library/bindings/CMakeLists.txt | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9cdf25b2..5c2a8f5a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,9 +67,9 @@ ENDIF(ENABLE_TESTS) #Check if we will building _and_ bundling the docs IF(DOXYGEN_FOUND AND QT_QCOLLECTIONGENERATOR_EXECUTABLE) - SET(BUILD_AND_BUNDLE_DOCS YES) + SET(BUILD_AND_BUNDLE_DOCS ON) ELSE() - SET(BUILD_AND_BUNDLE_DOCS NO) + SET(BUILD_AND_BUNDLE_DOCS OFF) ENDIF() ADD_SUBDIRECTORY(documentation) diff --git a/documentation/CMakeLists.txt b/documentation/CMakeLists.txt index 07db554b..8288ebe8 100644 --- a/documentation/CMakeLists.txt +++ b/documentation/CMakeLists.txt @@ -3,7 +3,7 @@ find_program(SPHINXBUILD_EXECUTABLE sphinx-build DOC "The location of the sphinx #if(SPHINXBUILD_EXECUTABLE AND QT_QCOLLECTIONGENERATOR_EXECUTABLE) if(SPHINXBUILD_EXECUTABLE) message(STATUS "Found `sphinx-build` at ${SPHINXBUILD_EXECUTABLE}") - set(BUILD_MANUAL YES PARENT_SCOPE) + set(BUILD_MANUAL ON PARENT_SCOPE) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/conf.in.py ${CMAKE_CURRENT_BINARY_DIR}/conf.py @ONLY) #Generates the HTML docs and the Qt help file which can be opened with "assistant -collectionFile thermite.qhc" @@ -22,5 +22,5 @@ else() if(NOT QT_QCOLLECTIONGENERATOR_EXECUTABLE) message(STATUS "`qhelpgenerator` was not found. Try setting QT_QCOLLECTIONGENERATOR_EXECUTABLE to its location.") endif() - set(BUILD_MANUAL NO PARENT_SCOPE) + set(BUILD_MANUAL OFF PARENT_SCOPE) endif() diff --git a/library/bindings/CMakeLists.txt b/library/bindings/CMakeLists.txt index 3e998e41..b7d76df7 100644 --- a/library/bindings/CMakeLists.txt +++ b/library/bindings/CMakeLists.txt @@ -5,7 +5,7 @@ if(ENABLE_BINDINGS) find_package(PythonLibs) set_package_properties(PythonLibs PROPERTIES DESCRIPTION "Programming language" URL http://www.python.org) if(SWIG_FOUND AND PYTHONLIBS_FOUND) - set(BUILD_BINDINGS YES CACHE BOOL "Will the bindings be built" FORCE) + set(BUILD_BINDINGS ON CACHE BOOL "Will the bindings be built" FORCE) include(${SWIG_USE_FILE}) include_directories(${PYTHON_INCLUDE_PATH}) @@ -21,5 +21,5 @@ if(ENABLE_BINDINGS) #set_target_properties(${SWIG_MODULE_PolyVoxCore_REAL_NAME} PROPERTIES SUFFIX ".pyd") endif() else() - set(BUILD_BINDINGS NO CACHE BOOL "Will the bindings be built" FORCE) + set(BUILD_BINDINGS OFF CACHE BOOL "Will the bindings be built" FORCE) endif()