]> git.lyx.org Git - features.git/commitdiff
Amend 7d021a93: Use interprocedural optimization if possible
authorKornel Benko <kornel@lyx.org>
Wed, 24 Apr 2019 12:44:41 +0000 (14:44 +0200)
committerKornel Benko <kornel@lyx.org>
Wed, 24 Apr 2019 12:47:44 +0000 (14:47 +0200)
Discard test programs using dummy_fuctions from the optimization.
This omits warnings about multiple method definitions.

src/support/tests/CMakeLists.txt

index 6e5f3ed39295350aa07d773f9e7f1c4d82c6df08..e5ef4fa6a8f8ef65e13e57c7f0c26062f7ec80ba 100644 (file)
@@ -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})