Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
ngraph
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ngraph
Commits
8c41b74a
Unverified
Commit
8c41b74a
authored
Oct 26, 2018
by
Robert Kimball
Committed by
GitHub
Oct 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove platform.cmake as it causes cmake errors (#1929)
parent
fa7da175
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
44 deletions
+2
-44
CMakeLists.txt
CMakeLists.txt
+2
-3
platform.cmake
cmake/platform.cmake
+0
-41
No files found.
CMakeLists.txt
View file @
8c41b74a
...
...
@@ -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
)
...
...
cmake/platform.cmake
deleted
100644 → 0
View file @
fa7da175
# ******************************************************************************
# 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
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment