blifexplorer: Suppress IPO link warnings
diff --git a/blifexplorer/CMakeLists.txt b/blifexplorer/CMakeLists.txt index 973dd69..f44bfd7 100644 --- a/blifexplorer/CMakeLists.txt +++ b/blifexplorer/CMakeLists.txt
@@ -61,4 +61,11 @@ ${CMAKE_DL_LIBS} ) +#Supress IPO link warnings if IPO is enabled +get_target_property(TEST_BLIFEXPLORER_USES_IPO blifexplorer INTERPROCEDURAL_OPTIMIZATION) +if (TEST_BLIFEXPLORER_USES_IPO) + set_target_properties(blifexplorer PROPERTIES LINK_FLAGS ${IPO_LINK_WARN_SUPRESS_FLAGS}) +endif() + + install(TARGETS blifexplorer DESTINATION bin)