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

WRG: fix warnings in msvc 64bit

parent ce4b04f5
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
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