suppress swig compile warnings

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2021-12-20 11:15:23 -07:00
parent ad61c71ce1
commit 632743b612
1 changed files with 9 additions and 0 deletions

View File

@ -329,6 +329,15 @@ swig_add_library(sta_swig
SOURCES ${STA_SWIG_FILE}
)
get_target_property(SWIG_FILES sta_swig SOURCES)
foreach(SWIG_FILE ${SWIG_FILES})
set_source_files_properties(${SWIG_FILE}
PROPERTIES
COMPILE_OPTIONS "-Wno-cast-qual;-Wno-missing-braces"
)
endforeach()
target_link_libraries(sta_swig
PUBLIC
OpenSTA