mirror of
https://github.com/libretro/pcsx2.git
synced 2024-12-25 19:25:43 +00:00
b19e31a1be
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4913 96395faa-99c1-11dd-bbfe-3dabce05a288
22 lines
561 B
CMake
22 lines
561 B
CMake
# Once done, this will define
|
|
#
|
|
# LIBC_FOUND - system has libc
|
|
# LIBC_LIBRARIES - link these to use libc
|
|
|
|
if(LIBC_LIBRARIES)
|
|
set(LIBC_FIND_QUIETLY TRUE)
|
|
endif(LIBC_LIBRARIES)
|
|
|
|
find_library(librt NAMES rt)
|
|
find_library(libdl NAMES dl)
|
|
find_library(libm NAMES m)
|
|
set(LIBC_LIBRARIES ${librt} ${libdl} ${libm})
|
|
|
|
# handle the QUIETLY and REQUIRED arguments and set LIBC_FOUND to TRUE if
|
|
# all listed variables are TRUE
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(Libc DEFAULT_MSG LIBC_LIBRARIES)
|
|
|
|
mark_as_advanced(LIBC_LIBRARIES)
|
|
|