Commit 364ef528 by Jacques Germishuys

Only disable deprecation warnings on Apple for OpenSSL

parent c6cd3f8b
......@@ -340,9 +340,11 @@ ELSE ()
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-function")
ENDIF()
CHECK_C_COMPILER_FLAG(-Wno-deprecated-declarations DEPRECATED_DECLARATIONS_WARNING)
IF(DEPRECATED_DECLARATIONS_WARNING)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-deprecated-declarations")
IF (APPLE) # Apple deprecated OpenSSL
CHECK_C_COMPILER_FLAG(-Wno-deprecated-declarations DEPRECATED_DECLARATIONS_WARNING)
IF(DEPRECATED_DECLARATIONS_WARNING)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-deprecated-declarations")
ENDIF()
ENDIF()
IF (PROFILE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment