Commit 7c72ab95 authored by Rashad Kanavath's avatar Rashad Kanavath

COMP: export CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS in otbConfigure.h

parent 0299897b
......@@ -174,6 +174,13 @@ endmacro()
option(BUILD_SHARED_LIBS "Build OTB with shared libraries." ON)
set(OTB_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS})
if(MSVC)
option(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS "Build OTB with shared libraries." ON)
set(OTB_CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ${CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS})
else()
set(OTB_CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS OFF)
endif()
#-----------------------------------------------------------------------------
# Option to activate deprecated classes
option(OTB_USE_DEPRECATED "Turn on the use and test of deprecated classes" OFF)
......
......@@ -8,7 +8,6 @@ foreach(_otb_module_activation_option IN LISTS OTB_MODULE_ACTIVATION_OPTION_LIST
"#cmakedefine ${_otb_module_activation_option}\n")
endforeach()
set(OTB_WINDOWS_EXPORT_ALL_SYMBOLS ${CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS})
configure_file(${OTBCommon_BINARY_DIR}/otbConfigure.h.in otbConfigure.h)
set(OTBCommon_INCLUDE_DIRS
......
......@@ -3,18 +3,9 @@
#define OTB_VERSION_PATCH @OTB_VERSION_PATCH@
#define OTB_VERSION_STRING "@OTB_VERSION_STRING@"
/* TODO : do we need a compile macro for BUILD_SHARED_LIBS ? */
#if 0
#cmakedefine OTB_BUILD_SHARED_LIBS
#ifdef OTB_BUILD_SHARED_LIBS
#define OTBDLL
#else
#define OTBSTATIC
#define OSSIMSTATIC
#endif
#endif
#cmakedefine OTB_CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS
#cmakedefine OTB_WINDOWS_EXPORT_ALL_SYMBOLS
#cmakedefine OTB_BUILD_SHARED_LIBS
/* Show developer debug messages */
#cmakedefine OTB_SHOW_ALL_MSG_DEBUG
......
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