File: FindATOMIC.cmake

package info (click to toggle)
dablin 1.16.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 640 kB
  • sloc: cpp: 5,900; ansic: 513; makefile: 5
file content (18 lines) | stat: -rw-r--r-- 599 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# - Try to find libatomic
# Once done this will define
#  ATOMIC_FOUND - System has libatomic
#  ATOMIC_LIBRARIES - The libraries needed to use libatomic

find_library(ATOMIC_LIBRARY NAMES atomic libatomic.so.1
    HINTS ${PC_ATOMIC_LIBDIR} ${PC_ATOMIC_LIBRARY_DIRS}
    )

set(ATOMIC_LIBRARIES ${ATOMIC_LIBRARY})

include(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set ATOMIC_FOUND to TRUE
# if all listed variables are TRUE
find_package_handle_standard_args(ATOMIC DEFAULT_MSG
                                  ATOMIC_LIBRARY)

mark_as_advanced(ATOMIC_LIBRARY)