Commit 341a34b2 authored by Scott Cyphers's avatar Scott Cyphers Committed by GitHub

Merge pull request #40 from NervanaSystems/cconvey/22_ubuntu1604_support-take2

Fixes #22 - Change supported platform to Ubuntu 16.04.
parents e2aeb64d 3decd2dc
...@@ -11,26 +11,41 @@ ...@@ -11,26 +11,41 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
# We require version 2.8.12 only because that's the lowest version of CMake on which # We require version 3.5.1 only because that's the lowest version of CMake on which
# we've validate this repository. # we've validate this repository.
cmake_minimum_required (VERSION 2.8.12) cmake_minimum_required (VERSION 3.5.1)
# Suppress an OS X-specific warning. # Suppress an OS X-specific warning.
if (POLICY CMP0042) if (POLICY CMP0042)
cmake_policy(SET CMP0042 OLD) cmake_policy(SET CMP0042 OLD)
endif() endif()
# Suppress a warning about not using the `project` command's `VERSION` argument. if ("${CMAKE_CXX_COMPILER}" STREQUAL "")
# Once we bump `cmake_minimum_required` to something >= 3.0, we can remove this # The user didn't indicate a compiler preference, to pick the compiler based on
# suppression and change how we specify the project's version number. # the personal preferences and convenience of the project's developers...
if (POLICY CMP0048) find_program(
cmake_policy(SET CMP0048 OLD) CXX_COMPILER
NAMES
clang++-4.0
clang++-3.9
clang++
c++
NAMES_PER_DIR
DOC "Which C++ compiler to use when building `libngraph` and the tests."
)
if ("${CXX_COMPILER}" STREQUAL "CXX_COMPILER-NOTFOUND")
message(FATAL_ERROR "Unable to find a suitable c++ compiler.")
else()
message(STATUS "Using C++ compiler: '${CXX_COMPILER}'")
set(CMAKE_CXX_COMPILER "${CXX_COMPILER}")
endif()
endif() endif()
set(CMAKE_CXX_COMPILER "clang++") project (ngraph
LANGUAGES CXX
project (ngraph CXX) VERSION 0.1
set(NGRAPH_VERSION 0.1) )
# These variables are undocumented but useful. # These variables are undocumented but useful.
set(CMAKE_DISABLE_SOURCE_CHANGES ON) set(CMAKE_DISABLE_SOURCE_CHANGES ON)
......
...@@ -5,9 +5,10 @@ TODO ...@@ -5,9 +5,10 @@ TODO
## Build Environments ## Build Environments
| Operating System | Compiler | Status | Additional packages required | | Operating System | Compiler | Build system | Status | Additional packages required |
| --------------------------- | -------- | --------- | --------------------------------- | | --------------------------- | --------- | ---------------------- | ---------------------- | --------------------------------- |
| Ubuntu 14.04.5 (LTS) 64-bit | CLang 3.9 | supported | `build-essential cmake clang-3.9` | | Ubuntu 16.04 (LTS) 64-bit | CLang 3.9 | CMake 3.5.1 + GNU Make | supported | `build-essential cmake clang-3.9` |
| Ubuntu 16.04 (LTS) 64-bit | CLang 4.0 | CMake 3.5.1 + GNU Make | unsupported, but works | `build-essential cmake clang-4.0` |
## Steps ## Steps
......
#pragma once #pragma once
#include <functional>
#include <vector> #include <vector>
#include <initializer_list> #include <initializer_list>
#include <iostream> #include <iostream>
......
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