Skip to content
Snippets Groups Projects
Commit 6da90eb6 authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

set proper dependencies for Monterverdi and force static build

parent d195b2c6
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ message(STATUS "Setup Monteverdi...")
set(MVD_SB_SRC ${CMAKE_BINARY_DIR}/${proj}/src/${proj})
set(MVD_SB_BUILD_DIR ${CMAKE_BINARY_DIR}/${proj}/build)
set(${proj}_DEPENDENCIES)# OTB)
set(${proj}_DEPENDENCIES OTB)
if(USE_SYSTEM_FLTK)
message(STATUS " Using FLTK system version")
......@@ -16,11 +16,6 @@ else()
list(APPEND ${proj}_DEPENDENCIES FLTK)
endif()
set(MVD_SB_BUILD_SHARED ON)
if(MSVC)
set(MVD_SB_BUILD_SHARED OFF)
endif()
ExternalProject_Add(${proj}
PREFIX ${proj}
HG_REPOSITORY "http://hg.orfeo-toolbox.org/Monteverdi"
......@@ -30,7 +25,8 @@ ExternalProject_Add(${proj}
DEPENDS ${${proj}_DEPENDENCIES}
CMAKE_CACHE_ARGS
-DCMAKE_BUILD_TYPE:STRING=Release
-DBUILD_SHARED_LIBS:BOOL=${MVD_SB_BUILD_SHARED}
-DBUILD_SHARED_LIBS:BOOL=${SB_BUILD_SHARED_LIBS}
-DBUILD_TESTING:BOOL=ON
-DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX}
${MVD_SB_FLTK_CONFIG}
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment