Commit 79687753 authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

PKG: include Packaging subdir if any of GENERATE_ is set

parent fc074bef
......@@ -249,7 +249,9 @@ else()
include(External_otb)
endif()
if(GENERATE_PACKAGE)
option(GENERATE_PACKAGE "Generate OTB package" ON)
option(GENERATE_XDK "Generate XDK for OTB development" OFF)
if(GENERATE_PACKAGE OR GENERATE_XDK)
if(UNIX)
add_subdirectory(Packaging)
endif()
......
......@@ -15,9 +15,6 @@ if(PROJECT_NAME STREQUAL "OTBPackaging")
set(OUT_OF_SOURCE_BUILD TRUE)
endif()
option(GENERATE_PACKAGE "Generate OTB package" ON)
option(GENERATE_XDK "Generate XDK for OTB development" OFF)
if(NOT GENERATE_PACKAGE AND NOT GENERATE_XDK)
#well. we don't have any businees here. Let's move on..
return()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment