Skip to content

Commit e3d4f4d

Browse files
committed
blifexplorer: Suppress IPO link warnings
1 parent 136973d commit e3d4f4d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

blifexplorer/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,11 @@ target_link_libraries(blifexplorer
6161
${CMAKE_DL_LIBS}
6262
)
6363

64+
#Supress IPO link warnings if IPO is enabled
65+
get_target_property(TEST_BLIFEXPLORER_USES_IPO blifexplorer INTERPROCEDURAL_OPTIMIZATION)
66+
if (TEST_BLIFEXPLORER_USES_IPO)
67+
set_target_properties(blifexplorer PROPERTIES LINK_FLAGS ${IPO_LINK_WARN_SUPRESS_FLAGS})
68+
endif()
69+
70+
6471
install(TARGETS blifexplorer DESTINATION bin)

0 commit comments

Comments
 (0)