Commit 8404eada authored by Rashad Kanavath's avatar Rashad Kanavath

WRG: fix warnings in msvc 64bit

parent ce4b04f5
......@@ -179,7 +179,7 @@ int main(int ac, char* av[])
argv[remainingArgs.size() + 1] = NULL;
/** Call to the otbTestMain */
return otbTestMain(remainingArgs.size(), argv);
return otbTestMain(static_cast<int>(remainingArgs.size()), argv);
}
......
......@@ -84,7 +84,12 @@ if ( OTB_WRAP_JAVA )
OTBApplicationEngine)
SWIG_add_module ( otbApplicationJava java otbApplication.i otbApplicationJAVA_wrap.cxx)
SWIG_link_libraries(otbApplicationJava OTBApplicationEngine )
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/otbApplicationJAVA_wrap.cxx COMPILE_FLAGS "-w")
if(MSVC)
set_source_files_properties( ${CMAKE_CURRENT_BINARY_DIR}/otbApplicationJAVA_wrap.cxx COMPILE_FLAGS "/wd4005" )
else()
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/otbApplicationJAVA_wrap.cxx COMPILE_FLAGS "-w")
endif()
# Add target for org.otb.Application.jar
add_custom_target(org_otb_Application_jar ALL DEPENDS org.otb.application.jar)
......
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