File: FindLibatomic.cmake

package info (click to toggle)
pgagroal 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 5,384 kB
  • sloc: ansic: 39,090; sh: 684; python: 272; makefile: 36; sql: 13
file content (22 lines) | stat: -rw-r--r-- 450 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# - Try to find libatomic
# Once done this will define
#  LIBATOMIC_FOUND   - System has libatomic
#  LIBATOMIC_LIBRARY - The library needed to use libatomic

FIND_LIBRARY(LIBATOMIC_LIBRARY NAMES atomic atomic.so.1 libatomic.so.1
  HINTS
  /usr/local/lib64
  /usr/local/lib
  /opt/local/lib64
  /opt/local/lib
  /usr/lib64
  /usr/lib
  /lib64
  /lib
)

IF (LIBATOMIC_LIBRARY)
  SET(LIBATOMIC_FOUND TRUE)
ELSE ()
  SET(LIBATOMIC_FOUND FALSE)
ENDIF ()