Skip to content

Commit

Permalink
One more CMake tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Mar 24, 2022
1 parent 44b262d commit b94e54b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,11 @@ if(MSVC)

if(BUILD_TOOLS AND WIN32 AND (NOT WINDOWS_STORE))
target_compile_options(meshconvert PRIVATE /fp:fast "$<$<NOT:$<CONFIG:DEBUG>>:/guard:cf>")
target_link_options(meshconvert PRIVATE /DYNAMICBASE /NXCOMPAT)
endif()

if((${CMAKE_SIZEOF_VOID_P} EQUAL 4) AND (NOT ${DIRECTX_ARCH} MATCHES "arm"))
target_compile_options(${PROJECT_NAME} PRIVATE /arch:SSE2)
target_link_options(${PROJECT_NAME} PRIVATE /SAFESEH)

if(BUILD_TOOLS AND WIN32 AND (NOT WINDOWS_STORE))
target_compile_options(meshconvert PRIVATE /arch:SSE2)
Expand Down

1 comment on commit b94e54b

@walbourn
Copy link
Member Author

@walbourn walbourn commented on b94e54b Mar 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VS generator implicitly adds /DYNAMICBASE /NXCOMPAT, but the Ninja generator does not. /SAFESEH doesn't apply to a library.

Please sign in to comment.