mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-09 11:40:14 +02:00
Minor cmake cleanup
This commit is contained in:
parent
403be02804
commit
62f1d7c991
@ -321,15 +321,13 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
|||||||
foreach(t IN LISTS TOOL_EXES)
|
foreach(t IN LISTS TOOL_EXES)
|
||||||
target_compile_options(${t} PRIVATE ${WarningsEXE})
|
target_compile_options(${t} PRIVATE ${WarningsEXE})
|
||||||
endforeach()
|
endforeach()
|
||||||
endif()
|
elseif(MINGW)
|
||||||
if(MINGW)
|
|
||||||
foreach(t IN LISTS TOOL_EXES ITEMS ${PROJECT_NAME})
|
foreach(t IN LISTS TOOL_EXES ITEMS ${PROJECT_NAME})
|
||||||
target_compile_definitions(${t} PRIVATE $<IF:$<CONFIG:DEBUG>,_DEBUG,NDEBUG>)
|
target_compile_definitions(${t} PRIVATE $<IF:$<CONFIG:DEBUG>,_DEBUG,NDEBUG>)
|
||||||
target_compile_options(${t} PRIVATE -Wno-ignored-attributes)
|
target_compile_options(${t} PRIVATE -Wno-ignored-attributes)
|
||||||
target_link_options(${t} PRIVATE -municode)
|
target_link_options(${t} PRIVATE -municode)
|
||||||
endforeach()
|
endforeach()
|
||||||
endif()
|
elseif (CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
|
||||||
if (CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
|
|
||||||
foreach(t IN LISTS TOOL_EXES ITEMS ${PROJECT_NAME})
|
foreach(t IN LISTS TOOL_EXES ITEMS ${PROJECT_NAME})
|
||||||
target_compile_options(${t} PRIVATE /sdl /permissive- /JMC- /Zc:__cplusplus)
|
target_compile_options(${t} PRIVATE /sdl /permissive- /JMC- /Zc:__cplusplus)
|
||||||
endforeach()
|
endforeach()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user