Ignore #warnings
The peci header throws warnings about it being used
in user space.
Change-Id: Ief02bae5807e3a2bae343beece0ae1fedfac633e
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 793ed05..11f9aef 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,6 +4,10 @@
set (CMAKE_CXX_STANDARD 17)
set (CMAKE_CXX_STANDARD_REQUIRED ON)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -lstdc++fs -Werror")
+
+# this is because peci linux header throws #warning
+set (CMAKE_CXX_FLAGS "-Wno-error=#warnings")
+
set (CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
option (YOCTO "Enable Building in Yocto" OFF)