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
6dfde1b6
Commit
6dfde1b6
authored
Nov 21, 2018
by
Robert Kimball
Committed by
Scott Cyphers
Nov 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix check to prevent in-tree builds (#2099)
* disable in-tree build * check to prevent in-tree builds
parent
cc277b6c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
.gitignore
.gitignore
+3
-0
CMakeLists.txt
CMakeLists.txt
+4
-4
No files found.
.gitignore
View file @
6dfde1b6
...
...
@@ -111,3 +111,6 @@ python/share/*
python/pybind11/
# remnants from a failed in-source build
CMakeCache.txt
CMakeFiles/
CMakeLists.txt
View file @
6dfde1b6
...
...
@@ -16,6 +16,10 @@
cmake_minimum_required
(
VERSION 3.1
)
if
(
"
${
CMAKE_SOURCE_DIR
}
"
STREQUAL
"
${
CMAKE_BINARY_DIR
}
"
)
message
(
FATAL_ERROR
"In-source builds are not allowed."
)
endif
()
include
(
cmake/Modules/git_tags.cmake
)
NGRAPH_GET_VERSION_LABEL
()
...
...
@@ -74,10 +78,6 @@ if($ENV{NGRAPH_USE_PREBUILT_LLVM})
set
(
NGRAPH_USE_PREBUILT_LLVM TRUE
)
endif
()
# These variables are undocumented but useful.
set
(
CMAKE_DISABLE_SOURCE_CHANGES ON
)
set
(
CMAKE_DISABLE_IN_SOURCE_BUILD ON
)
# Create compilation database compile_commands.json
set
(
CMAKE_EXPORT_COMPILE_COMMANDS ON
)
...
...
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