1
0
Fork 0

Set link options only without DESKTOP_APP_USE_PACKAGED

This commit is contained in:
Ilya Fedin 2020-07-22 19:49:55 +04:00 committed by John Preston
parent 0417330cc9
commit 2acd52d39a

View file

@ -25,23 +25,26 @@ INTERFACE
-Wno-maybe-uninitialized -Wno-maybe-uninitialized
-Wno-error=class-memaccess -Wno-error=class-memaccess
) )
if (NOT DESKTOP_APP_USE_PACKAGED) if (NOT DESKTOP_APP_USE_PACKAGED)
target_compile_options(common_options target_compile_options(common_options
INTERFACE INTERFACE
$<IF:$<CONFIG:Debug>,,-Ofast> $<IF:$<CONFIG:Debug>,,-Ofast>
-Werror -Werror
) )
target_link_options(common_options target_link_options(common_options
INTERFACE INTERFACE
$<IF:$<CONFIG:Debug>,,-Ofast> $<IF:$<CONFIG:Debug>,,-Ofast>
) )
endif()
if (build_linux32) if (build_linux32)
target_compile_options(common_options INTERFACE -g0) target_compile_options(common_options INTERFACE -g0)
target_link_options(common_options INTERFACE -g0) target_link_options(common_options INTERFACE -g0)
elseif (NOT DESKTOP_APP_USE_PACKAGED) else()
target_compile_options(common_options INTERFACE $<IF:$<CONFIG:Debug>,,-g -flto>) target_compile_options(common_options INTERFACE $<IF:$<CONFIG:Debug>,,-g -flto>)
target_link_options(common_options INTERFACE $<IF:$<CONFIG:Debug>,,-g -flto -fuse-linker-plugin>) target_link_options(common_options INTERFACE $<IF:$<CONFIG:Debug>,,-g -flto -fuse-linker-plugin>)
endif()
endif() endif()
target_link_libraries(common_options target_link_libraries(common_options