From 84e8cc9cd2ae759fa3e56b4b692ce09977c5d209 Mon Sep 17 00:00:00 2001 From: Juston Li Date: Fri, 12 Jan 2018 11:10:33 -0800 Subject: [PATCH] Remove -Werror Signed-off-by: Juston Li --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 253d955..9b5f46c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -568,15 +568,15 @@ add_custom_target(rpm COMMAND cd ${ROOT} && tar --exclude-vcs --exclude="*output" --exclude="*.swp*" --transform="s,^.,${MARKETING_PRODUCT_NAME}-${BUILDNUM}," -zcf ${RPMBUILD_DIR}/SOURCES/${MARKETING_PRODUCT_NAME}-${BUILDNUM}.tar.gz . # rpmbuild - COMMAND cd ${ROOT} && rpmbuild -ba ${RPMBUILD_DIR}/SPECS/${MARKETING_PRODUCT_NAME}.spec --define "_topdir ${RPMBUILD_DIR}" --define "cflag ${CFLAGS_EXTERNAL}" + COMMAND cd ${ROOT} && rpmbuild -ba ${RPMBUILD_DIR}/SPECS/${MARKETING_PRODUCT_NAME}.spec --define "_topdir ${RPMBUILD_DIR}" ) # -------------------------------------------------------------------------------------------------- # Project wide defines and flags # -------------------------------------------------------------------------------------------------- -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector-all -D_XOPEN_SOURCE=500 -Wall -Werror -Wfatal-errors -MMD") -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -ggdb -fstack-protector-all -D_XOPEN_SOURCE=500 -Wall -Werror -Wfatal-errors -MMD") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector-all -D_XOPEN_SOURCE=500 -Wall -Wfatal-errors -MMD") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -ggdb -fstack-protector-all -D_XOPEN_SOURCE=500 -Wall -Wfatal-errors -MMD") add_definitions( -D__WBEM_PREFIX__=Intel_