Skip to content

Commit

Permalink
ENH: back-porting #1165 to support Visual Studio 2019
Browse files Browse the repository at this point in the history
  • Loading branch information
dzenanz committed Aug 21, 2019
1 parent 90ad651 commit 432dd1b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Modules/ThirdParty/VNL/src/vxl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,11 @@ set( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${VXL_EXTRA_CMAKE_EXE_
set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${VXL_EXTRA_CMAKE_MODULE_LINKER_FLAGS}" )
set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${VXL_EXTRA_CMAKE_SHARED_LINKER_FLAGS}" )


if(MSVC_VERSION GREATER_EQUAL 1920)
# Force synchronous writes of .pdb files for building VXL on MSVC 1920-1929
# https://docs.microsoft.com/en-us/cpp/build/reference/fs-force-synchronous-pdb-writes?view=vs-201
add_compile_options( "/FS" )
endif()
#-------------------------------------------------------------------
#-- BUILD CONFIG OPTIONS

Expand Down

0 comments on commit 432dd1b

Please sign in to comment.