Auto-update ade to v0.1.2 (#4474)
* Update ade to v0.1.2 * patch mingw --------- Co-authored-by: star9029 <hengxings783@gmail.com>pull/4506/head
parent
f3799e8734
commit
48a7261601
2 changed files with 35 additions and 1 deletions
@ -0,0 +1,27 @@ |
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index af78061..8aba951 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -39,13 +39,15 @@ function(add_security_flags target)
|
||||
target_compile_options( ${target} PRIVATE -fstack-protector-strong)
|
||||
endif()
|
||||
elseif(WIN32)
|
||||
- target_compile_options( ${target} PRIVATE /GS /DynamicBase)
|
||||
- if(BUILD_WITH_STATIC_CRT)
|
||||
- target_compile_options( ${target} PRIVATE "/MT")
|
||||
- endif()
|
||||
- if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "4")
|
||||
- # These options for 32 bit builds only
|
||||
- target_compile_options( ${target} PRIVATE /SAFESEH /NXCOMPAT )
|
||||
+ if (MSVC)
|
||||
+ target_compile_options( ${target} PRIVATE /GS /DynamicBase)
|
||||
+ if(BUILD_WITH_STATIC_CRT)
|
||||
+ target_compile_options( ${target} PRIVATE "/MT")
|
||||
+ endif()
|
||||
+ if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "4")
|
||||
+ # These options for 32 bit builds only
|
||||
+ target_compile_options( ${target} PRIVATE /SAFESEH /NXCOMPAT )
|
||||
+ endif()
|
||||
endif()
|
||||
endif()
|
||||
endfunction()
|
Loading…
Reference in new issue