Fix AppKit find module

This commit is contained in:
BtbN
2014-09-15 19:38:18 +02:00
committed by jp9000
parent 62d7bcf841
commit 34134bfbf6
2 changed files with 8 additions and 14 deletions

View File

@@ -1,18 +1,12 @@
# Once done these will be defined:
#
# AppKit_FOUND
# AppKit_LIBRARIES
#
# APPKIT_FOUND
# APPKIT_LIBRARIES
if(AppKit_LIBRARIES)
set(AppKit_FOUND TRUE)
else()
find_library(APPKIT_FRAMEWORK AppKit)
find_library(APPKIT_FRAMEWORK AppKit)
set(AppKit_LIBRARIES ${APPKIT_FRAMEWORK} CACHE STRING "AppKit framework")
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)