File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
libs/EXTERNAL/libblifparse Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,19 @@ set_target_properties(libblifparse PROPERTIES PREFIX "") #Avoid extra 'lib' pref
4949add_executable (blifparse_test src/main.cpp)
5050target_link_libraries (blifparse_test libblifparse)
5151
52+ #Suppress IPO link warnings
53+ get_target_property (USES_IPO blifparse_test INTERPROCEDURAL_OPTIMIZATION )
54+ if (USES_IPO)
55+ set (IPO_LINK_WARN_FLAGS_TO_CHECK "-Wno-null-dereference" )
56+ foreach (flag ${IPO_LINK_WARN_FLAGS_TO_CHECK} )
57+ CHECK_CXX_COMPILER_FLAG(${flag} CXX_COMPILER_SUPPORTS_${flag} )
58+ if (CXX_COMPILER_SUPPORTS_${flag} )
59+ #Flag supported, so enable it
60+ set_target_properties (blifparse_test PROPERTIES LINK_FLAGS ${flag} )
61+ endif ()
62+ endforeach ()
63+ endif ()
64+
5265if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR} )
5366 #Add the tests if we are the root project
5467 enable_testing ()
You can’t perform that action at this time.
0 commit comments