Skip to content

Commit

Permalink
Fixed CMake for RelWithDebInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Mar 23, 2022
1 parent 73cfbdb commit 44b262d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,10 @@ if(BUILD_TOOLS AND WIN32 AND (NOT WINDOWS_STORE))
endif()

if(MSVC)
target_compile_options(${PROJECT_NAME} PRIVATE /fp:fast "$<$<CONFIG:RELEASE>:/guard:cf>")
target_link_options(${PROJECT_NAME} PRIVATE /DEBUG)
target_compile_options(${PROJECT_NAME} PRIVATE /fp:fast "$<$<NOT:$<CONFIG:DEBUG>>:/guard:cf>")

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

if((${CMAKE_SIZEOF_VOID_P} EQUAL 4) AND (NOT ${DIRECTX_ARCH} MATCHES "arm"))
Expand Down

0 comments on commit 44b262d

Please sign in to comment.