forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated samples compile options (openvinotoolkit#6818)
* Don't warn about obsolete cmake usage * Removed build flags for samples * Fixed ngraph with -Wpedantic * cmake for 3rdparty
- Loading branch information
1 parent
a4e9fca
commit 6a3f114
Showing
5 changed files
with
27 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,18 @@ | ||
CMAKE_MINIMUM_REQUIRED(VERSION 3.0 FATAL_ERROR) | ||
if(COMMAND cmake_policy) | ||
cmake_policy(SET CMP0003 NEW) | ||
endif(COMMAND cmake_policy) | ||
# Copyright (C) 2018-2021 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
project(CNPY) | ||
project(cnpy) | ||
|
||
set(TARGET_NAME "cnpy") | ||
add_library(cnpy STATIC "cnpy.cpp") | ||
add_library(cnpy STATIC cnpy.cpp) | ||
|
||
if(NOT ${CMAKE_CXX_COMPILER_ID} STREQUAL "MSVC") | ||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-all") | ||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-all") | ||
target_compile_options(${TARGET_NAME} PUBLIC -Wno-unused-variable) | ||
if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") | ||
target_compile_options(${TARGET_NAME} PUBLIC -Wno-unused-variable | ||
PRIVATE -Wno-all) | ||
endif() | ||
|
||
target_link_libraries(${TARGET_NAME} PUBLIC zlib) | ||
target_include_directories(${TARGET_NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/..") | ||
target_include_directories(${TARGET_NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}") | ||
|
||
set_target_properties(cnpy PROPERTIES FOLDER thirdparty) | ||
set_target_properties(cnpy PROPERTIES FOLDER thirdparty) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters