Skip to content

Commit

Permalink
Merge pull request #309 from Wolf3s/apple
Browse files Browse the repository at this point in the history
Fix mac build on cmake
  • Loading branch information
sahlberg authored Jan 10, 2024
2 parents 3f07293 + 7e204ac commit 8a40ccb
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,12 @@ if(NOT ESP_PLATFORM)

list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/Modules)

find_package(GSSAPI)
if(IOS)
find_package(GSSAPI)

if(GSSAPI_FOUND)
add_definitions(-DHAVE_LIBKRB5)
if(GSSAPI_FOUND)
add_definitions(-DHAVE_LIBKRB5)
endif()
endif()

include(cmake/ConfigureChecks.cmake)
Expand All @@ -103,7 +105,9 @@ if(NOT ESP_PLATFORM)
include/smb2
)

set(core_DEPENDS ${GSSAPI_LIBRARIES} CACHE STRING "" FORCE)
if(IOS)
set(core_DEPENDS ${GSSAPI_LIBRARIES} CACHE STRING "" FORCE)
endif()

if(MSVC AND BUILD_SHARED_LIBS)
# If we are building dll with msvc, then generate a def file according to the syms file
Expand Down

0 comments on commit 8a40ccb

Please sign in to comment.