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

COMP: MSVC: turn off manifest file generation

parent 1ce8a38d
No related branches found
No related tags found
No related merge requests found
......@@ -209,6 +209,9 @@ macro(check_compiler_platform_flags)
set(CMAKE_EXE_LINKER_FLAGS "-Wl,--enable-auto-import")
endif()
else()
if(MSVC)
set(OTB_REQUIRED_LINK_FLAGS "${OTB_REQUIRED_LINK_FLAGS} /MANIFEST:NO")
endif()
# if CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS is on, then
# BUILD_SHARED_LIBS works as it would on other systems
if(NOT CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS)
......@@ -349,4 +352,4 @@ macro(set_linker_stack_size_flag exe_target requested_stack_size)
elseif(MINGW)
set_target_properties(${exe_target} PROPERTIES LINK_FLAGS "-Wl,--stack,${requested_stack_size}")
endif()
endmacro()
\ No newline at end of file
endmacro()
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