diff --git a/Examples/CMakeLists.txt b/Examples/CMakeLists.txt index f27eef36c1c0b39a0720fb45f13f2835107b3bc4..d8b583a5e3d26b89e085bd8ae0b68ffd0a1758c1 100644 --- a/Examples/CMakeLists.txt +++ b/Examples/CMakeLists.txt @@ -15,8 +15,6 @@ if(PROJECT_NAME STREQUAL "OTBExamples") include(CTest) endif() - include(${CMAKE_CURRENT_SOURCE_DIR}/../CMake/OTBManageLargeInputPaths.cmake) - # dashboard build. Why do I need to see the deprecated warnings on dashboard! # It just fades the actual warnings and most importantly very annoying. if(NOT "$ENV{DASHBOARD_TEST_FROM_CTEST}" STREQUAL "") @@ -93,6 +91,10 @@ if(PROJECT_NAME STREQUAL "OTBExamples") endfunction() ########################## end copied from OTB/CMakeLists.txt ########################## +else() + + #Examples that require large input cannot be enabled when building as standalone + include(${CMAKE_CURRENT_SOURCE_DIR}/../CMake/OTBManageLargeInputPaths.cmake) endif()