Unverified Commit 8c41b74a authored by Robert Kimball's avatar Robert Kimball Committed by GitHub

remove platform.cmake as it causes cmake errors (#1929)

parent fa7da175
......@@ -109,7 +109,6 @@ endif()
if (LINUX)
include(GNUInstallDirs)
include(cmake/platform.cmake)
else()
set(CMAKE_INSTALL_BINDIR "bin")
set(CMAKE_INSTALL_INCLUDEDIR "include")
......@@ -145,7 +144,7 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if (DEFINED NGRAPH_USE_CXX_ABI)
message( STATUS "nGraph using CXX11 ABI: " ${NGRAPH_USE_CXX_ABI} )
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_GLIBCXX_USE_CXX11_ABI=${NGRAPH_USE_CXX_ABI}")
endif()
endif()
endif()
ngraph_var(NGRAPH_WARNINGS_AS_ERRORS DEFAULT "OFF")
......@@ -202,7 +201,7 @@ if(WIN32)
endif()
if (NGRAPH_CPU_ENABLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNGRAPH_CPU_ENABLE")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNGRAPH_CPU_ENABLE")
endif()
if (NOT DEFINED NGRAPH_TBB_ENABLE)
......
# ******************************************************************************
# Copyright 2017-2018 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ******************************************************************************
if (EXISTS "/etc/lsb-release")
file(STRINGS "/etc/lsb-release" __lsb_release_file_content)
foreach(__line ${__lsb_release_file_content})
string(STRIP "${__line}" __line)
string(REGEX MATCH "^(.+)=(.*)$" __lsb_release_values_check ${__line})
set(${CMAKE_MATCH_1} ${CMAKE_MATCH_2})
endforeach()
elseif (EXISTS "/etc/os-release")
file(STRINGS "/etc/os-release" __os_release_file_content)
foreach(__line ${__os_release_file_content})
string(STRIP "${__line}" __line)
string(REGEX MATCH "^(.+)=(.*)$" __os_release_values_check ${__line})
string(REPLACE "\"" "" __variable_value ${CMAKE_MATCH_2})
set(__${CMAKE_MATCH_1} ${__variable_value})
endforeach()
set(DISTRIB_ID ${__NAME})
set(DISTRIB_CODENAME ${__VERSION_CODENAME})
set(DISTRIB_RELEASE ${__VERSION_ID})
set(DISTRIB_DESCRIPTION ${__PRETTY_NAME})
else()
unset(DISTRIB_ID "?unknown?")
unset(DISTRIB_CODENAME)
unset(DISTRIB_RELEASE)
unset(DISTRIB_DESCRIPTION)
endif()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment