diff dep/animia/CMakeLists.txt @ 182:c413e475f496

dep/animia: various stylistic changes
author Paper <mrpapersonic@gmail.com>
date Mon, 04 Dec 2023 13:19:54 -0500
parents e44b7c428d7c
children 649786bae914
line wrap: on
line diff
--- a/dep/animia/CMakeLists.txt	Mon Dec 04 12:14:30 2023 -0500
+++ b/dep/animia/CMakeLists.txt	Mon Dec 04 13:19:54 2023 -0500
@@ -30,6 +30,12 @@
 	# check anyway.
 	if (HAVE_COREFOUNDATION)
 		list(APPEND DEFINES HAVE_COREFOUNDATION)
+
+		find_library(FOUNDATION_LIBRARY Foundation)
+		list(APPEND LIBRARIES ${FOUNDATION_LIBRARY})
+	else()
+		message(STATUS "You don't have Core Foundation. How? What kind of voodoo magic did you do to cause this?")
+		message(WARNING "LaunchServices support will not be compiled.")
 	endif()
 
 	check_language(OBJCXX)
@@ -38,10 +44,11 @@
 		list(APPEND SRC_FILES
 			src/win/quartz.mm
 		)
-		find_library(FOUNDATION_LIBRARY Foundation)
+
+		# we likely already have Foundation at this point.
 		find_library(COREGRAPHICS_LIBRARY CoreGraphics)
 		find_library(APPKIT_LIBRARY AppKit)
-		list(APPEND LIBRARIES ${FOUNDATION_LIBRARY} ${COREGRAPHICS_LIBRARY} ${APPKIT_LIBRARY})
+		list(APPEND LIBRARIES ${COREGRAPHICS_LIBRARY} ${APPKIT_LIBRARY})
 	else() # NOT CMAKE_OBJCXX_COMPILER
 		message(WARNING "An Objective-C++ compiler couldn't be found! Window enumeration support will not be compiled.")
 	endif() # CMAKE_OBJCXX_COMPILER