Add NXT_GENERATED_FLAGS using set_property

This commit is contained in:
Corentin Wallez 2017-07-20 11:00:14 -04:00 committed by Corentin Wallez
parent 2dfea9961a
commit 240343f9db
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ function(Generate)
) )
NXTInternalTarget("${G_FOLDER}" ${G_LIB_NAME}) NXTInternalTarget("${G_FOLDER}" ${G_LIB_NAME})
target_compile_options(${G_LIB_NAME} PRIVATE ${NXT_GENERATED_FLAGS}) set_property(TARGET ${G_LIB_NAME} APPEND PROPERTY COMPILE_OPTIONS ${NXT_GENERATED_FLAGS})
endfunction() endfunction()
set(GENERATED_DIR ${CMAKE_CURRENT_BINARY_DIR} PARENT_SCOPE) set(GENERATED_DIR ${CMAKE_CURRENT_BINARY_DIR} PARENT_SCOPE)