From: Kornel Benko Date: Wed, 24 Apr 2019 12:44:41 +0000 (+0200) Subject: Amend 7d021a93: Use interprocedural optimization if possible X-Git-Tag: lyx-2.4.0dev-acb2ca7b~2108 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ef285cb7c49bbea1d5ae63a1dddbf2cd5945c58f;p=lyx.git Amend 7d021a93: Use interprocedural optimization if possible Discard test programs using dummy_fuctions from the optimization. This omits warnings about multiple method definitions. --- diff --git a/src/support/tests/CMakeLists.txt b/src/support/tests/CMakeLists.txt index 6e5f3ed392..e5ef4fa6a8 100644 --- a/src/support/tests/CMakeLists.txt +++ b/src/support/tests/CMakeLists.txt @@ -21,6 +21,7 @@ macro(sources _program) target_link_libraries(${_program} shlwapi) endif() qt_use_modules(${_program} Core) + set_property(TARGET ${_program} PROPERTY INTERPROCEDURAL_OPTIMIZATION FALSE) endmacro() file(GLOB test_sources ${TOP_SRC_DIR}/src/support/tests/${LYX_CPP_FILES})