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
49
49
add_executable (blifparse_test src/main.cpp )
50
50
target_link_libraries (blifparse_test libblifparse )
51
51
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
+
52
65
if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR} )
53
66
#Add the tests if we are the root project
54
67
enable_testing ()
You can’t perform that action at this time.
0 commit comments