osx clang quench deprecated api errors
after approach by redhat https://bugzilla.redhat.com/show_bug.cgi?id=1155181 Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
b39c22fc38
commit
1700265081
1 changed files with 5 additions and 0 deletions
|
@ -487,6 +487,11 @@ if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX OR (CMAKE_C_COMPILER_ID
|
|||
endif(UNIX)
|
||||
endif ()
|
||||
|
||||
if ((CMAKE_C_COMPILER_ID MATCHES "Clang") OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
|
||||
# otherwise osx blows a bunch of openssl deprecated api errors
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-deprecated-declarations" )
|
||||
endif()
|
||||
|
||||
source_group("Headers Private" FILES ${HDR_PRIVATE})
|
||||
source_group("Headers Public" FILES ${HDR_PUBLIC})
|
||||
source_group("Sources" FILES ${SOURCES})
|
||||
|
|
Loading…
Add table
Reference in a new issue