diff options
author | Manuel Bentele | 2020-11-23 06:56:40 +0100 |
---|---|---|
committer | Manuel Bentele | 2020-11-23 06:56:40 +0100 |
commit | a70afbbe88006eef5991e878275acde85caabc13 (patch) | |
tree | 2267f808153cfa506bc0bb3fd0ffbc785139e7eb /src | |
parent | [BUILD] increase minimum CMake version to be compliant with CMake 3.19.x (diff) | |
download | dnbd3-a70afbbe88006eef5991e878275acde85caabc13.tar.gz dnbd3-a70afbbe88006eef5991e878275acde85caabc13.tar.xz dnbd3-a70afbbe88006eef5991e878275acde85caabc13.zip |
[BUILD] add CMake find package search to find 'libatomic' automatically
Diffstat (limited to 'src')
-rw-r--r-- | src/server/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/CMakeLists.txt b/src/server/CMakeLists.txt index 038d626..c56cc9f 100644 --- a/src/server/CMakeLists.txt +++ b/src/server/CMakeLists.txt @@ -10,6 +10,9 @@ if(NOT JANSSON_FOUND) message(FATAL_ERROR "*** No jansson lib found, can't build dnbd3-server!") endif(NOT JANSSON_FOUND) +# find atomic library required by the dnbd3-server +find_package(Libatomic REQUIRED) + # add compile option to enable enhanced POSIX features add_definitions(-D_GNU_SOURCE) |