Fix CMakeLists.txt syntax error and msys2 compatibility.
This commit is contained in:
parent
7558dad915
commit
70514be11f
|
@ -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" )
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue