mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 13:38:00 +00:00
Enable warnings on Windows
This commit is contained in:
committed by
Corentin Wallez
parent
83e779d8f2
commit
0f833f30ed
@@ -62,10 +62,7 @@ function(Generate)
|
||||
)
|
||||
|
||||
NXTInternalTarget("${G_FOLDER}" ${G_LIB_NAME})
|
||||
if (NOT MSVC)
|
||||
target_compile_options(${G_LIB_NAME} PRIVATE "-Wno-unused-variable")
|
||||
target_compile_options(${G_LIB_NAME} PRIVATE "-Wno-unused-function")
|
||||
endif()
|
||||
target_compile_options(${G_LIB_NAME} PRIVATE ${NXT_GENERATED_FLAGS})
|
||||
endfunction()
|
||||
|
||||
set(GENERATED_DIR ${CMAKE_CURRENT_BINARY_DIR} PARENT_SCOPE)
|
||||
|
||||
Reference in New Issue
Block a user