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
181be216
Unverified
Commit
181be216
authored
Mar 06, 2018
by
Fenglei
Committed by
GitHub
Mar 06, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into tfl/gpu_fix_constant_bug
parents
843e83a2
456db623
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
patch_json.cmake
cmake/Modules/patch_json.cmake
+10
-0
external_json.cmake
cmake/external_json.cmake
+7
-1
No files found.
cmake/Modules/patch_json.cmake
0 → 100644
View file @
181be216
set
(
FILE_NAME
${
CMAKE_BINARY_DIR
}
/include/nlohmann/detail/macro_scope.hpp
)
file
(
READ
${
FILE_NAME
}
FILE_CONTENTS
)
string
(
REPLACE
"#if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) < 40900"
"#if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) < 40805"
REWRITTEN_FILE
"
${
FILE_CONTENTS
}
"
)
file
(
WRITE
${
FILE_NAME
}
"
${
REWRITTEN_FILE
}
"
)
message
(
STATUS
"json library gcc minimum version number patched"
)
cmake/external_json.cmake
View file @
181be216
...
...
@@ -34,6 +34,9 @@ if (${CMAKE_VERSION} VERSION_LESS 3.2)
BUILD_COMMAND
""
INSTALL_COMMAND
""
UPDATE_COMMAND
""
# cmake does not allow calling cmake functions so we call a cmake script in the Module
# directory.
PATCH_COMMAND
${
CMAKE_COMMAND
}
-P
${
CMAKE_MODULE_PATH
}
patch_json.cmake
)
else
()
ExternalProject_Add
(
...
...
@@ -44,7 +47,10 @@ else()
BUILD_COMMAND
""
INSTALL_COMMAND
""
UPDATE_COMMAND
""
)
# cmake does not allow calling cmake functions so we call a cmake script in the Module
# directory.
PATCH_COMMAND
${
CMAKE_COMMAND
}
-P
${
CMAKE_MODULE_PATH
}
patch_json.cmake
)
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