From 780aa6f87b594e80cef0e345f5e9e69aed656782 Mon Sep 17 00:00:00 2001 From: chenjianping Date: Sat, 18 Apr 2020 01:41:25 +0000 Subject: [PATCH] Add license head in build.bat --- build.bat | 14 ++++++++++++++ third_party/securec/CMakeLists.txt | 7 +------ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/build.bat b/build.bat index 5d423720fdd..76d7f192629 100644 --- a/build.bat +++ b/build.bat @@ -1,3 +1,17 @@ +@rem Copyright 2020 Huawei Technologies Co., Ltd +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem http://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem ============================================================================ @echo off @title mindspore_build diff --git a/third_party/securec/CMakeLists.txt b/third_party/securec/CMakeLists.txt index 99345c6eb3c..f012b05860a 100644 --- a/third_party/securec/CMakeLists.txt +++ b/third_party/securec/CMakeLists.txt @@ -8,12 +8,7 @@ SET(CMAKE_C_FLAGS_RELEASE "$ENV{CFLAGS} -fPIC -O3 -Wall -Wno-deprecated-declarat set(CMAKE_EXPORT_COMPILE_COMMANDS ON) #add flags -if (CMAKE_SYSTEM_NAME MATCHES "Windows") - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I/usr/local/include") -else() - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I/usr/local/include -Werror") -endif() - +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I/usr/local/include -Werror") include_directories(./include) add_subdirectory(src)