* parent6e7016ccdaauthor Ilya Churaev <ilya.churaev@intel.com> 1664281499 +0400 committer Ilya Churaev <ilya.churaev@intel.com> 1664510018 +0400 Fixed warnings on local machine * Added CMAKE_COMPILE_WARNING_AS_ERROR usage * Fixed style * Fixed merge conflicts * Fixed typo * Fixed myriad build for macOS * Fixed warning * Fixed tests * Disabled incorrect test * Try to fix linux tests * Revert "Try to fix linux tests" This reverts commit29224c93ff. * Fixed tests * Revert logic with incorrect cast * Fixed log softmax * Disable warning as error for cuda * Try to fix inference_engine_s * Fixed cmake * Revert "Fixed cmake" This reverts commit87e9e4e674. * Revert "Try to fix inference_engine_s" This reverts commita1adca8b05. * WA for static symbols in inference_engine_s test library * Fixed code style * Fixed static definition for master * Revert "Fixed static definition for master" This reverts commit20d00d215a. * Revert "Fixed code style" This reverts commit0eb2362543. * Revert "WA for static symbols in inference_engine_s test library" This reverts commit75ef86a79d. * Fixed linker issue for Windows * Disable WaE by default * Disable warning as error in the developer package * Try to fix dev package * Try to fix Windows Jenkins * Revert old behavior for tread_warn_as_err variable
58 lines
1.3 KiB
CMake
58 lines
1.3 KiB
CMake
# Copyright (C) 2018-2022 Intel Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
project(zlib)
|
|
|
|
if(CMAKE_C_COMPILER_ID STREQUAL "MSVC")
|
|
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4996 /wd4244 /W3")
|
|
set (CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /wd4995 /wd4244 /wd4996")
|
|
else()
|
|
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-all")
|
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
|
|
#266: function "XXX" declared implicitly
|
|
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -diag-disable=266")
|
|
endif()
|
|
endif()
|
|
|
|
set(TARGET_NAME "zlib")
|
|
|
|
set(zlib_srcs
|
|
zlib/adler32.c
|
|
zlib/compress.c
|
|
zlib/crc32.c
|
|
zlib/deflate.c
|
|
zlib/gzclose.c
|
|
zlib/gzlib.c
|
|
zlib/gzread.c
|
|
zlib/gzwrite.c
|
|
zlib/inflate.c
|
|
zlib/infback.c
|
|
zlib/inftrees.c
|
|
zlib/inffast.c
|
|
zlib/trees.c
|
|
zlib/uncompr.c
|
|
zlib/zutil.c)
|
|
|
|
set(zlib_hdrs
|
|
zlib/crc32.h
|
|
zlib/deflate.h
|
|
zlib/gzguts.h
|
|
zlib/inffast.h
|
|
zlib/inffixed.h
|
|
zlib/inflate.h
|
|
zlib/inftrees.h
|
|
zlib/trees.h
|
|
zlib/zutil.h)
|
|
|
|
set(zlib_ext_hdrs
|
|
zlib/zlib.h
|
|
zlib/zconf.h)
|
|
|
|
add_library(${TARGET_NAME} STATIC ${zlib_srcs} ${zlib_hdrs} ${lib_ext_hdrs})
|
|
add_library(${TARGET_NAME}::${TARGET_NAME} ALIAS ${TARGET_NAME})
|
|
|
|
target_include_directories(${TARGET_NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/zlib")
|
|
|
|
set_target_properties(zlib PROPERTIES FOLDER thirdparty)
|