Skip to content

Commit b81c86f

Browse files
committed
make docs disabled by default in cmake
1 parent 893bf6f commit b81c86f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ option(FINUFFT_BUILD_DEVEL "Whether to build development executables" OFF)
2323
option(FINUFFT_BUILD_EXAMPLES "Whether to build the FINUFFT examples" OFF)
2424
option(FINUFFT_BUILD_TESTS "Whether to build the FINUFFT tests" OFF)
2525
option(FINUFFT_USE_DUCC0 "Whether to use DUCC0 (instead of FFTW) for CPU FFTs" OFF)
26+
option(FINUFFT_BUILD_DOCS "Whether to build the FINUFFT documentation" OFF)
2627
# if FINUFFT_USE_DUCC0 is ON, the following options are ignored
2728
set(FINUFFT_FFTW_LIBRARIES "DEFAULT" CACHE STRING "Specify a custom FFTW library")
2829
set(FINUFFT_FFTW_SUFFIX "OpenMP" CACHE STRING "Suffix for FFTW libraries (e.g. OpenMP, Threads etc.)")
@@ -144,7 +145,9 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
144145
if(FINUFFT_BUILD_TESTS)
145146
enable_testing()
146147
endif()
147-
include(cmake/setupSphinx.cmake)
148+
if(FINUFFT_BUILD_DOCS)
149+
include(cmake/setupSphinx.cmake)
150+
endif()
148151
endif()
149152

150153
if(FINUFFT_USE_CPU)

0 commit comments

Comments
 (0)