Skip to content

Commit 9662284

Browse files
committed
prevent long build time on OSX
disable doxygen rebased with master tested with cmake 3.23 on OSX
1 parent 95aefb0 commit 9662284

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

test/CMakeLists.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.16...3.22)
1+
cmake_minimum_required(VERSION 3.16...3.23)
22

33
# set a default CXX standard used by the external tools like clang-tidy, cppcheck, etc.
44
# You can later set fine-grained standards for each target using `target_compile_features`
@@ -38,7 +38,7 @@ project_options(
3838
# TODO(CK: should not installed with this option!) ENABLE_COVERAGE
3939
# TBD: ENABLE_PCH
4040
# TBD: PCH_HEADERS ${PCH_HEADERS}
41-
ENABLE_DOXYGEN
41+
# NO(CK)! To slow! ENABLE_DOXYGEN
4242
# ENABLE_INTERPROCEDURAL_OPTIMIZATION
4343
# ENABLE_NATIVE_OPTIMIZATION
4444
# ENABLE_USER_LINKER
@@ -74,9 +74,10 @@ target_link_system_libraries(
7474
enable_testing()
7575
add_test(NAME main COMMAND main)
7676

77-
### to get CMAKE_INSTALL_INCLUDEDIR
78-
# NOTE: enable at least one language before including GNUInstallDirs.
79-
include(GNUInstallDirs)
77+
if(NOT DEFINED CMAKE_INSTALL_INCLUDEDIR)
78+
# NOTE: enable at least one language before including GNUInstallDirs.
79+
include(GNUInstallDirs)
80+
endif()
8081

8182
# Header-only library
8283
add_library(lib INTERFACE)

test_install/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.16...3.22)
1+
cmake_minimum_required(VERSION 3.16...3.23)
22

33
set(CMAKE_CXX_STANDARD 20)
44

@@ -23,11 +23,11 @@ project_options(
2323
# ENABLE_COVERAGE
2424
# ENABLE_PCH
2525
# PCH_HEADERS <Eigen/Dense> <fmt/core.h> <vector> <utility> <string> <string_view>
26-
ENABLE_DOXYGEN
26+
# XXX ENABLE_DOXYGEN
2727
DOXYGEN_THEME
2828
"${CMAKE_CURRENT_LIST_DIR}/css/my_custom_theme.css"
2929
"${CMAKE_CURRENT_LIST_DIR}/css/my_custom_theme_extra.css"
30-
ENABLE_INTERPROCEDURAL_OPTIMIZATION
30+
# ENABLE_INTERPROCEDURAL_OPTIMIZATION
3131
# ENABLE_USER_LINKER
3232
# ENABLE_BUILD_WITH_TIME_TRACE
3333
# ENABLE_UNITY

0 commit comments

Comments
 (0)