Convert CMake variables from YES/NO to ON/OFF
This commit is contained in:
parent
2b5024591e
commit
d7fc289035
@ -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)
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user