Skip to content

Commit 13169e6

Browse files
committed
missing headers, min/max macro snafu
1 parent 8d7708a commit 13169e6

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

test/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ set_target_properties(common_test_settings PROPERTIES
9292
MSVC_DEBUG_INFORMATION_FORMAT Embedded
9393
)
9494
target_include_directories(common_test_settings INTERFACE "${CMAKE_CURRENT_LIST_DIR}")
95-
target_compile_definitions(common_test_settings INTERFACE STDEXEC_NAMESPACE=std::execution)
95+
target_compile_definitions(common_test_settings INTERFACE
96+
STDEXEC_NAMESPACE=std::execution
97+
$<$<PLATFORM_ID:Windows>:NOMINMAX>
98+
)
9699
target_compile_options(common_test_settings INTERFACE
97100
$<$<CXX_COMPILER_ID:MSVC>:/wd4714> # function marked as __forceinline not inlined
98101
$<$<CXX_COMPILER_ID:GNU>:-Wno-maybe-uninitialized> # warnings being emitted from stdlib headers, why?

test/exec/test_libdispatch.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
#include "exec/libdispatch_queue.hpp"
1919
#include "stdexec/execution.hpp"
2020

21+
#include <numeric>
22+
#include <utility>
23+
#include <vector>
24+
2125
namespace
2226
{
2327
TEST_CASE("libdispatch queue should be able to process tasks")

0 commit comments

Comments
 (0)