Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8020d61

Browse files
committed
Fix indentation in taskflow.hpp. Add MSVC check in CMakeLists.txt
1 parent 5e736fe commit 8020d61

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

CMakeLists.txt

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,25 @@ include(CTest)
1111
set(CMAKE_VERBOSE_MAKEFILE ON)
1212

1313
# 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")
1616
message(FATAL_ERROR "\nCpp-Taskflow requires g++ at least v7.2")
1717
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")
2020
message(FATAL_ERROR "\nCpp-Taskflow requires clang++ at least v5.0")
2121
endif()
22+
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
23+
if(NOT MSVC_VERSION GREATER_EQUAL 1914)
24+
message(FATAL_ERROR "\nCpp-Taskflow requires MSVC++ at least v14.14 (Visual Studio
25+
2017 version 15.7)")
26+
endif()
2227
else()
2328
message(FATAL_ERROR "\n\
2429
Cpp-Taskflow currently supports the following compilers:\n\
2530
- g++ v7.2 or above\n\
2631
- clang++ v5.0\n\
32+
- MSVC++ v14.14\n\
2733
")
2834
endif()
2935

taskflow/taskflow.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@ auto BasicFlowBuilder<NodeType>::emplace(C&& c) {
982982
auto& node = _nodes.emplace_front([p = MoC(std::move(p)), c = std::forward<C>(c)]() mutable {
983983
c();
984984
p.get().set_value();
985-
});
985+
});
986986
return std::make_pair(TaskType(node), std::move(fu));
987987
}
988988
else {

0 commit comments

Comments
 (0)