]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Add CMake option to explicitly enable/disable /SAFESEH linker flag for Visual Studio...
authorAndres Mejia <amejia004@gmail.com>
Fri, 1 Feb 2013 00:20:34 +0000 (19:20 -0500)
committerAndres Mejia <amejia004@gmail.com>
Fri, 1 Feb 2013 00:20:34 +0000 (19:20 -0500)
commit146a5067ca976b208b4aab06127efdf4ba9096f9
treec129f6b5e99e8fa72bb776ffa719d62605be5c2c
parentb708276ac543fb1c3d48fbd57f5592334a0dea28
Add CMake option to explicitly enable/disable /SAFESEH linker flag for Visual Studio builds.

Visual Studio 12 enables this option by default. Enabling /SAFESEH will produce build failures when
attempting to link other libraries which were not built with /SAFESEH. This would typically be
the case for libraries built using the mingw toolchain, where the option to use structured exception
handling is not yet available.

The option is used as follows.
  Setting to "YES" sets "/SAFESEH" linker flag
  Setting to "NO" sets "/SAFESEH:NO" linker flag
  Setting to any other value such as "AUTO" won't do anything (set the default linker flag from Visual Studio)
CMakeLists.txt