]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Added compile flags to pzstd 575/head
authorMilan Ševčík <majlen@civ.zcu.cz>
Mon, 27 Feb 2017 13:44:49 +0000 (14:44 +0100)
committerMilan Ševčík <majlen@civ.zcu.cz>
Tue, 28 Feb 2017 09:57:09 +0000 (10:57 +0100)
Definition NDEBUG from original Makefile
-Wno-shadow silences shadowing in initializers

build/cmake/contrib/pzstd/CMakeLists.txt

index 6699fcc876ce6337e2209119f00c2a3251cecee3..2a3663f31ff5f9f9020e4210964cef613ee5ba3d 100644 (file)
@@ -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")