aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordrenfong.wang <drenfong.wang@intel.com>2019-01-23 05:29:12 +0000
committerdrenfong.wang <drenfong.wang@intel.com>2019-01-23 05:29:12 +0000
commit28feac42492feb3a1f9f02d88cb410d137d2504f (patch)
tree94364a0a315c5b52c44fb9e59de3bdea0e729951
parentcfb4b66c196c141f1fca84f39c18ea2c850daa4f (diff)
centos gcc-4.8.5 should commpile plugin with gnu99
Change-Id: Id642632b07ce6787af364a4ea576777e3453831a Signed-off-by: drenfong.wang <drenfong.wang@intel.com>
-rw-r--r--src/plugins/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt
index dbff110..b347989 100644
--- a/src/plugins/CMakeLists.txt
+++ b/src/plugins/CMakeLists.txt
@@ -12,7 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
+
+# set compiler options
+set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -std=gnu99")
+set(CMAKE_C_FLAGS_RELEASE "-DNDEBUG -O2")
+set(CMAKE_C_FLAGS_DEBUG "-g -O0")
set (CMAKE_INSTALL_LIBDIR "/usr/lib")
+
cmake_minimum_required(VERSION 2.8)
project(sysrepo-vpp-plugins)