Skip to content

Commit

Permalink
/CETCOMPAT
Browse files Browse the repository at this point in the history
  • Loading branch information
jchen351 committed Mar 25, 2024
1 parent a76a9ac commit 9a57a87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ target_include_directories(onnxruntime-genai-static PRIVATE ${ORT_HEADER_DIR})

if(CMAKE_GENERATOR_TOOLSET MATCHES "Visual Studio")
target_link_options(onnxruntime-genai PRIVATE "/CETCOMPAT")
target_compile_options(onnxruntime-genai PRIVATE "/sdl")
target_compile_options(onnxruntime-genai PRIVATE "/sdl" PRIVATE "/Qspectre")
endif()

if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
Expand Down
6 changes: 3 additions & 3 deletions cmake/presets/CMakeWinConfigPresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"generator": "Visual Studio 17 2022",
"architecture": "x64",
"cacheVariables": {
"CMAKE_EXE_LINKER_FLAGS_INIT": "/profile /DYNAMICBASE",
"CMAKE_MODULE_LINKER_FLAGS_INIT": "/profile /DYNAMICBASE",
"CMAKE_SHARED_LINKER_FLAGS_INIT": "/profile /DYNAMICBASE",
"CMAKE_EXE_LINKER_FLAGS_INIT": "/profile /CETCOMPAT /DYNAMICBASE",
"CMAKE_MODULE_LINKER_FLAGS_INIT": "/profile /CETCOMPAT /DYNAMICBASE",
"CMAKE_SHARED_LINKER_FLAGS_INIT": "/profile /CETCOMPAT /DYNAMICBASE",
"USE_CUDA": "OFF"
},
"condition": {
Expand Down

0 comments on commit 9a57a87

Please sign in to comment.