mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-09 11:40:14 +02:00
Minor cmake code review
This commit is contained in:
parent
9bc07dc20f
commit
d993bbdb6e
@ -297,6 +297,10 @@ if(MSVC)
|
||||
target_link_options(${t} PRIVATE "$<$<NOT:$<CONFIG:DEBUG>>:/guard:ehcont>")
|
||||
endforeach()
|
||||
endif()
|
||||
else()
|
||||
foreach(t IN LISTS TOOL_EXES ITEMS ${PROJECT_NAME})
|
||||
target_compile_definitions(${t} PRIVATE $<IF:$<CONFIG:DEBUG>,_DEBUG,NDEBUG>)
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
if(NOT (${DIRECTX_ARCH} MATCHES "^arm"))
|
||||
@ -323,7 +327,6 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
endforeach()
|
||||
elseif(MINGW)
|
||||
foreach(t IN LISTS TOOL_EXES ITEMS ${PROJECT_NAME})
|
||||
target_compile_definitions(${t} PRIVATE $<IF:$<CONFIG:DEBUG>,_DEBUG,NDEBUG>)
|
||||
target_compile_options(${t} PRIVATE -Wno-ignored-attributes)
|
||||
target_link_options(${t} PRIVATE -municode)
|
||||
endforeach()
|
||||
|
Loading…
x
Reference in New Issue
Block a user