Commit 40e345af authored by Rashad Kanavath's avatar Rashad Kanavath

PKG: find zip inside Packaging/CMakeLists.txt for both build

parent e5fb728d
...@@ -299,11 +299,6 @@ if(GENERATE_PACKAGE OR GENERATE_XDK) ...@@ -299,11 +299,6 @@ if(GENERATE_PACKAGE OR GENERATE_XDK)
message(FATAL_ERROR "OTB_SOURCE_DIR is missing") message(FATAL_ERROR "OTB_SOURCE_DIR is missing")
endif() endif()
find_program(ZIP_EXECUTABLE zip)
if(NOT ZIP_EXECUTABLE)
message(FATAL_ERROR "Cannot find zip executable. Please add it to your path")
endif()
add_subdirectory(${OTB_SOURCE_DIR}/SuperBuild/Packaging ${CMAKE_BINARY_DIR}/Packaging) add_subdirectory(${OTB_SOURCE_DIR}/SuperBuild/Packaging ${CMAKE_BINARY_DIR}/Packaging)
endif() # (WIN32 OR CMAKE_CROSSCOMPILING) endif() # (WIN32 OR CMAKE_CROSSCOMPILING)
......
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