Skip to content

Commit

Permalink
feat: add MRDOX_GENERATE_REFERENCE cmake option
Browse files Browse the repository at this point in the history
  • Loading branch information
sdkrystian committed Jun 16, 2023
1 parent 03bcc0a commit 6e67eb4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ option(MRDOX_BUILD_SHARED "Link shared" OFF)
option(MRDOX_BUILD_DOCS "Configure install target" OFF)
option(MRDOX_INSTALL "Configure install target" ON)
option(MRDOX_PACKAGE "Build install package" ON)
option(MRDOX_GENERATE_REFERENCE "Generate reference.xml/reference.adoc" ON)

if (MRDOX_BUILD_SHARED)
set(MRDOX_LINK_MODE SHARED)
Expand Down Expand Up @@ -235,7 +236,7 @@ if (MRDOX_BUILD_TESTS)
"${PROJECT_SOURCE_DIR}/test-files/old-tests"
)

if (CMAKE_EXPORT_COMPILE_COMMANDS)
if (MRDOX_GENERATE_REFERENCE)
# test run
set(CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES})
include(mrdox.cmake)
Expand Down

0 comments on commit 6e67eb4

Please sign in to comment.