Enable warnings on Windows

This commit is contained in:
Corentin Wallez
2017-07-10 20:09:59 -04:00
committed by Corentin Wallez
parent 83e779d8f2
commit 0f833f30ed
6 changed files with 33 additions and 10 deletions

View File

@@ -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)