From 4b62f419698d313647f3a111caf2c2b804711a05 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Milan=20=C5=A0ev=C4=8D=C3=ADk?= Date: Mon, 27 Feb 2017 14:44:49 +0100 Subject: [PATCH] Added compile flags to pzstd Definition NDEBUG from original Makefile -Wno-shadow silences shadowing in initializers --- build/cmake/contrib/pzstd/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/cmake/contrib/pzstd/CMakeLists.txt b/build/cmake/contrib/pzstd/CMakeLists.txt index 6699fcc87..2a3663f31 100644 --- a/build/cmake/contrib/pzstd/CMakeLists.txt +++ b/build/cmake/contrib/pzstd/CMakeLists.txt @@ -25,4 +25,6 @@ INCLUDE_DIRECTORIES(${PROGRAMS_DIR} ${LIBRARY_DIR} ${LIBRARY_DIR}/common ${PZSTD ADD_EXECUTABLE(pzstd ${PZSTD_DIR}/main.cpp ${PZSTD_DIR}/Options.cpp ${PZSTD_DIR}/Pzstd.cpp ${PZSTD_DIR}/SkippableFrame.cpp) TARGET_LINK_LIBRARIES(pzstd libzstd_static pthread) +SET_TARGET_PROPERTIES(pzstd PROPERTIES COMPILE_DEFINITIONS "NDEBUG") +SET_TARGET_PROPERTIES(pzstd PROPERTIES COMPILE_OPTIONS "-Wno-shadow") -- 2.47.2