Skip to content

Commit

Permalink
Parse GSSAPI flags on AIX
Browse files Browse the repository at this point in the history
  • Loading branch information
Etienne Guesnet committed Sep 11, 2020
1 parent 63c3ca5 commit 4938864
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/FindGSSAPI.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ else(GSSAPI_LIBS AND GSSAPI_FLAVOR)
message(STATUS "GSSAPI configure check failed.")
set(HAVE_KRB5_GSSAPI FALSE)
endif(_return_VALUE)
IF(CMAKE_SYSTEM_NAME MATCHES AIX)
string(REGEX REPLACE "-Wl[A-Za-z0-9_/,:-]*[ $]?" "" GSSAPI_LIBS "${GSSAPI_LIBS}")
string(REGEX REPLACE "-L[A-Za-z0-9_/,:-]*[ $]?" "" GSSAPI_LIBS "${GSSAPI_LIBS}")
ENDIF()

exec_program(${KRB5_CONFIG} ARGS --cflags gssapi RETURN_VALUE _return_VALUE OUTPUT_VARIABLE GSSAPI_INCS)
string(REGEX REPLACE "(\r?\n)+$" "" GSSAPI_INCS "${GSSAPI_INCS}")
Expand Down

0 comments on commit 4938864

Please sign in to comment.