summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-08-12 20:25:35 +0200
committerSuren A. Chilingaryan <csa@suren.me>2015-08-12 20:25:35 +0200
commit55783eb24e983786056f4ba7925aa23fca13c79e (patch)
tree3a4c9bd7523117f790b411ba8fe4b3907d5e72bc /CMakeLists.txt
parent38fdfd8b69ba5ae747915bbdbb3066d29611437d (diff)
downloadpcitool-55783eb24e983786056f4ba7925aa23fca13c79e.tar.gz
pcitool-55783eb24e983786056f4ba7925aa23fca13c79e.tar.bz2
pcitool-55783eb24e983786056f4ba7925aa23fca13c79e.tar.xz
pcitool-55783eb24e983786056f4ba7925aa23fca13c79e.zip
Fix support of older systems: Remove C11 derective and add rt library to the link list
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bbe5a74..337a366 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -12,6 +12,8 @@ set(DISABLE_PCITOOL FALSE CACHE BOOL "Build only the library")
find_package(PkgConfig REQUIRED)
find_package(Threads REQUIRED)
+set(EXTRA_SYSTEM_LIBS -lrt)
+
#Check in sibling directory
if (NOT DISABLE_PCITOOL)
pkg_check_modules(FASTWRITER fastwriter REQUIRED)
@@ -19,8 +21,8 @@ endif (NOT DISABLE_PCITOOL)
check_include_files(stdatomic.h HAVE_STDATOMIC_H)
-add_definitions("-fPIC --std=c11 -Wall -O2 -gdwarf-2 -g3")
-#add_definitions("-fPIC --std=c11 -Wall -O2")
+add_definitions("-fPIC --std=c99 -Wall -O2 -gdwarf-2 -g3")
+#add_definitions("-fPIC --std=c99 -Wall -O2")
include(cmake/version.cmake)
VERSION_TO_VARS(${PCILIB_VERSION} PCILIB_VERSION_MAJOR PCILIB_VERSION_MINOR PCILIB_VERSION_MICRO)