Skip to content
Snippets Groups Projects
Commit 34134bfb authored by BtbN's avatar BtbN Committed by Jim
Browse files

Fix AppKit find module

parent 62d7bcf8
No related branches found
No related tags found
No related merge requests found
# Once done these will be defined:
#
# AppKit_FOUND
# AppKit_LIBRARIES
#
if(AppKit_LIBRARIES)
set(AppKit_FOUND TRUE)
else()
find_library(APPKIT_FRAMEWORK AppKit)
# APPKIT_FOUND
# APPKIT_LIBRARIES
set(AppKit_LIBRARIES ${APPKIT_FRAMEWORK} CACHE STRING "AppKit framework")
find_library(APPKIT_FRAMEWORK AppKit)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(AppKit DEFAULT_MSG APPKIT_FRAMEWORK)
mark_as_advanced(APPKIT_FRAMEWORK)
endif()
set(APPKIT_LIBRARIES ${APPKIT_FRAMEWORK})
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(AppKit DEFAULT_MSG APPKIT_FRAMEWORK)
mark_as_advanced(APPKIT_FRAMEWORK)
......@@ -28,7 +28,7 @@ elseif(APPLE)
platform-osx.mm)
find_package(AppKit REQUIRED)
set(obs_PLATFORM_LIBRARIES ${AppKit_LIBRARIES})
set(obs_PLATFORM_LIBRARIES ${APPKIT_LIBRARIES})
add_definitions(-fobjc-arc)
elseif(UNIX)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment