Commit 78fedeae authored by Rashad Kanavath's avatar Rashad Kanavath

SuperBuild: update cmake flags for msvc

parent ba8884b9
......@@ -105,13 +105,13 @@ if(MSVC)
ADD_SUPERBUILD_CMAKE_VAR(OTB JPEG_LIBRARY)
endif()
if(MSVC)
set(_CXX_FLAGS )
endif()
# forward compilation flags
set(OTB_SB_C_FLAGS "${SB_PRIOR_INCLUDE_FLAGS} ${CMAKE_C_FLAGS} ")
set(OTB_SB_CXX_FLAGS "${SB_PRIOR_INCLUDE_FLAGS} ${CMAKE_CXX_FLAGS} /EHsc /DNOMINMAX")
set(OTB_SB_CXX_FLAGS "${SB_PRIOR_INCLUDE_FLAGS} ${CMAKE_CXX_FLAGS}")
if(MSVC)
set(OTB_SB_CXX_FLAGS "${OTB_SB_CXX_FLAGS} /EHsc /DNOMINMAX")
endif()
set(OTB_SB_COMPILATION_FLAGS
-DCMAKE_C_FLAGS:STRING=${OTB_SB_C_FLAGS}
......
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