- moved curl lib check to unix scope.

- moved HAVE_Xi check back into linux scope as a precaution.
This commit is contained in:
Nick Bolton 2014-02-05 16:53:27 +00:00
parent ee87828a9d
commit b8fc718b5a

View File

@ -140,6 +140,9 @@ if (UNIX)
else (HAVE_PTHREAD) else (HAVE_PTHREAD)
message(FATAL_ERROR "Missing library: pthread") message(FATAL_ERROR "Missing library: pthread")
endif() endif()
find_library(lib_CURL CURL)
list(APPEND libs ${lib_CURL})
if (APPLE) if (APPLE)
exec_program(uname ARGS -v OUTPUT_VARIABLE DARWIN_VERSION) exec_program(uname ARGS -v OUTPUT_VARIABLE DARWIN_VERSION)
@ -163,15 +166,12 @@ if (UNIX)
find_library(lib_ApplicationServices ApplicationServices) find_library(lib_ApplicationServices ApplicationServices)
find_library(lib_Foundation Foundation) find_library(lib_Foundation Foundation)
find_library(lib_Carbon Carbon) find_library(lib_Carbon Carbon)
find_library(lib_CURL CURL)
list(APPEND libs list(APPEND libs
${lib_ScreenSaver} ${lib_ScreenSaver}
${lib_IOKit} ${lib_IOKit}
${lib_ApplicationServices} ${lib_ApplicationServices}
${lib_Foundation} ${lib_Foundation
${lib_Carbon}
${lib_CURL}
) )
else() else()
@ -242,13 +242,15 @@ if (UNIX)
if (HAVE_Xrandr) if (HAVE_Xrandr)
list(APPEND libs Xrandr) list(APPEND libs Xrandr)
endif() endif()
# this was outside of the linux scope,
# not sure why, moving it back inside.
if(HAVE_Xi)
list(APPEND libs Xi)
endif()
endif() endif()
IF(HAVE_Xi)
LIST(APPEND libs Xi)
ENDIF()
# For config.h, set some static values; it may be a good idea to make # For config.h, set some static values; it may be a good idea to make
# these values dynamic for non-standard UNIX compilers. # these values dynamic for non-standard UNIX compilers.
set(ACCEPT_TYPE_ARG3 socklen_t) set(ACCEPT_TYPE_ARG3 socklen_t)