Skip to content

Commit

Permalink
fix build issues on Mac OS
Browse files Browse the repository at this point in the history
  • Loading branch information
whoenig committed May 30, 2022
1 parent 1f9d893 commit 2095781
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ add_library(crazyflieLinkCpp

# Apple macOS libraries
if (APPLE)
set(CMAKE_EXE_LINKER_FLAGS "-lobjc -framework IOKit -framework CoreFoundation")
set(CMAKE_MODULE_LINKER_FLAGS "-lobjc -framework IOKit -framework CoreFoundation")
set(CMAKE_EXE_LINKER_FLAGS "-lobjc -framework IOKit -framework CoreFoundation -framework Security")
set(CMAKE_MODULE_LINKER_FLAGS "-lobjc -framework IOKit -framework CoreFoundation -framework Security")
endif()

# Link pthread on Linux and Mac only
Expand Down

0 comments on commit 2095781

Please sign in to comment.