Skip to content

Commit

Permalink
Make INSTALL_DOC option from streamlog available globally
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Mar 29, 2021
1 parent 9f06435 commit 7ab444e
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 @@ -14,6 +14,7 @@ SET( ${PROJECT_NAME}_VERSION_MAJOR 1 )
SET( ${PROJECT_NAME}_VERSION_MINOR 6 )
SET( ${PROJECT_NAME}_VERSION_PATCH 1 )

OPTION( INSTALL_DOC "Set to OFF to skip build/install Documentation" ON )

LIST( APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmakemodules" )
INCLUDE( ilcsoft_default_settings )
Expand Down Expand Up @@ -50,7 +51,7 @@ ExternalProject_Add( ilctest
ExternalProject_Add( example
DEPENDS ilctest streamlog
SOURCE_DIR "${PROJECT_SOURCE_DIR}/example"
CMAKE_ARGS -DCMAKE_PREFIX_PATH=${CMAKE_INSTALL_PREFIX} -DCMAKE_MODULE_PATH=${PROJECT_SOURCE_DIR}/cmakemodules -DCMAKE_CXX_STANDARD=${CMAKE_CXX_STANDARD} -DUSE_CXX11=${USE_CXX11}
CMAKE_ARGS -DCMAKE_PREFIX_PATH=${CMAKE_INSTALL_PREFIX} -DCMAKE_MODULE_PATH=${PROJECT_SOURCE_DIR}/cmakemodules -DCMAKE_CXX_STANDARD=${CMAKE_CXX_STANDARD} -DUSE_CXX11=${USE_CXX11} -DINSTALL_DOC=${INSTALL_DOC}
INSTALL_COMMAND ${CMAKE_COMMAND} -E echo "no install step needed"
TEST_COMMAND ${CMAKE_BUILD_TOOL} test
)
Expand Down

0 comments on commit 7ab444e

Please sign in to comment.