File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -11,19 +11,25 @@ include(CTest)
11
11
set (CMAKE_VERBOSE_MAKEFILE ON )
12
12
13
13
# Compiler vendors
14
- if (${ CMAKE_CXX_COMPILER_ID} STREQUAL "GNU" )
15
- if (${ CMAKE_CXX_COMPILER_VERSION} VERSION_LESS "7.2" )
14
+ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
15
+ if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "7.2" )
16
16
message (FATAL_ERROR "\n Cpp-Taskflow requires g++ at least v7.2" )
17
17
endif ()
18
- elseif (${ CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" )
19
- if (${ CMAKE_CXX_COMPILER_VERSION} VERSION_LESS "5.0" )
18
+ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" )
19
+ if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "5.0" )
20
20
message (FATAL_ERROR "\n Cpp-Taskflow requires clang++ at least v5.0" )
21
21
endif ()
22
+ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" )
23
+ if (NOT MSVC_VERSION GREATER_EQUAL 1914)
24
+ message (FATAL_ERROR "\n Cpp-Taskflow requires MSVC++ at least v14.14 (Visual Studio
25
+ 2017 version 15.7)" )
26
+ endif ()
22
27
else ()
23
28
message (FATAL_ERROR "\n\
24
29
Cpp-Taskflow currently supports the following compilers:\n\
25
30
- g++ v7.2 or above\n\
26
31
- clang++ v5.0\n\
32
+ - MSVC++ v14.14\n\
27
33
" )
28
34
endif ()
29
35
Original file line number Diff line number Diff line change @@ -982,7 +982,7 @@ auto BasicFlowBuilder<NodeType>::emplace(C&& c) {
982
982
auto & node = _nodes.emplace_front ([p = MoC (std::move (p)), c = std::forward<C>(c)]() mutable {
983
983
c ();
984
984
p.get ().set_value ();
985
- });
985
+ });
986
986
return std::make_pair (TaskType (node), std::move (fu));
987
987
}
988
988
else {
You can’t perform that action at this time.
0 commit comments