Fix CMakeLists.txt syntax error and msys2 compatibility.

This commit is contained in:
jean-pierre charras 2022-03-13 12:45:02 +01:00
parent 7558dad915
commit 70514be11f
2 changed files with 5 additions and 1 deletions

View File

@ -160,7 +160,6 @@ cmake_dependent_option( KICAD_WIN32_VERIFY_CODESIGN
"When enabled, verifies the code signing signature of certain DLLs loaded during runtime."
OFF "WIN32"
OFF )
endif()
# Global setting: exports are explicit
set( CMAKE_CXX_VISIBILITY_PRESET "hidden" )

View File

@ -28,7 +28,10 @@
#include <strsafe.h>
#include <config.h>
#include <VersionHelpers.h>
#if defined( _MSC_VER )
#include <werapi.h>
#endif
bool KIPLATFORM::APP::Init()
@ -46,8 +49,10 @@ bool KIPLATFORM::APP::Init()
SetErrorMode( SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX );
#endif
#if defined( _MSC_VER )
// ensure the WER crash report dialog always appears
WerSetFlags( WER_FAULT_REPORTING_ALWAYS_SHOW_UI );
#endif
// remove CWD from the dll search paths
// just the smallest of security tweaks as we do load DLLs on demand