cmake: fix building UWP with non-MSVC generator

This commit is contained in:
Anonymous Maarten authored and Anonymous Maarten committed 2024-07-19 10:21:34 +00:00
1 parent ccebbb6c6e
commit 2d1d3d9fb2
2 files changed
+24 -13

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ message(STATUS "CMAKE_SYSTEM_PROCESSOR= ${CMAKE_SYSTEM_PROCESSOR}")
if(WINDOWS_STORE)
enable_language(CXX)
add_compile_options(/ZW)
add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:/ZW>")
set_source_files_properties(ain_cli.c main_gui.c PROPERTIES LANGUAGE CXX)
endif()