Skip to content

Commit 46378e5

Browse files
committed
Clean up some unused CMake options and reorder options.
1 parent 433ca9f commit 46378e5

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

CMakeLists.txt

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,22 +52,19 @@ else()
5252
endif()
5353

5454
# Feature options, including dependencies.
55-
cmake_dependent_option(BUILD_SHARED_LIBS "Build and install libprojectM as a shared libraries. If OFF, builds as static libraries." ON "NOT ENABLE_EMSCRIPTEN" OFF)
56-
option(ENABLE_DOXYGEN "Build and install Doxygen source code documentation in PROJECTM_DATADIR_PATH/docs." OFF)
57-
option(ENABLE_CXX_INTERFACE "Enable exporting all C++ symbols, not only the C API, in the shared library. Warning: This is not very portable." OFF)
58-
option(ENABLE_PRESETS "Build and install bundled presets" ON)
5955
option(BUILD_TESTING "Build the libprojectM test suite" OFF)
56+
cmake_dependent_option(BUILD_SHARED_LIBS "Build and install libprojectM as a shared libraries. If OFF, builds as static libraries." ON "NOT ENABLE_EMSCRIPTEN" OFF)
57+
option(ENABLE_PLAYLIST "Enable building the playlist management library" ON)
6058
cmake_dependent_option(ENABLE_SDL_UI "Build the SDL2-based developer test UI" OFF "NOT ENABLE_EMSCRIPTEN" OFF)
6159
cmake_dependent_option(ENABLE_GLES "Enable OpenGL ES support" OFF "NOT ENABLE_EMSCRIPTEN" ON)
6260
cmake_dependent_option(ENABLE_OPENMP "Enable OpenMP support if available" ON "NOT ENABLE_EMSCRIPTEN" OFF)
6361
cmake_dependent_option(ENABLE_THREADING "Enable multithreading support." ON "NOT ENABLE_EMSCRIPTEN" OFF)
64-
cmake_dependent_option(ENABLE_LLVM "Enable LLVM JIT support" OFF "NOT ENABLE_EMSCRIPTEN" OFF)
6562
option(ENABLE_SYSTEM_GLM "Enable use of system-install GLM library" OFF)
66-
option(ENABLE_PLAYLIST "Enable building the playlist management library" ON)
6763

68-
if(ENABLE_DOXYGEN)
69-
find_package(Doxygen REQUIRED)
70-
endif()
64+
# Experimental/unsupported features
65+
cmake_dependent_option(ENABLE_LLVM "Enable experimental LLVM JIT support" OFF "NOT ENABLE_EMSCRIPTEN" OFF)
66+
option(ENABLE_CXX_INTERFACE "Enable exporting C++ symbols for ProjectM and PCM classes, not only the C API. Warning: This is not very portable." OFF)
67+
7168

7269
if(ENABLE_SYSTEM_GLM)
7370
find_package(GLM REQUIRED)
@@ -215,7 +212,6 @@ message(STATUS "Features:")
215212
message(STATUS "==============================================")
216213
message(STATUS "")
217214
message(STATUS " Build shared libraries: ${BUILD_SHARED_LIBS}")
218-
message(STATUS " Presets: ${ENABLE_PRESETS}")
219215
message(STATUS " Threading: ${ENABLE_THREADING}")
220216
message(STATUS " SDL2: ${ENABLE_SDL_UI}")
221217
if(ENABLE_SDL_UI)
@@ -240,7 +236,6 @@ message(STATUS "")
240236
message(STATUS " libprojectM: (always built)")
241237
message(STATUS " Playlist library: ${ENABLE_PLAYLIST}")
242238
message(STATUS " SDL2 Test UI: ${ENABLE_SDL_UI}")
243-
message(STATUS " Doxygen API docs: ${ENABLE_DOXYGEN}")
244239
message(STATUS " Tests: ${BUILD_TESTING}")
245240
message(STATUS "")
246241

0 commit comments

Comments
 (0)