Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempting to work around a Boost.Spirit problem #6581

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions components/performance_counters/io/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ if(HPX_WITH_IO_COUNTERS)
SOURCES ${io_counters_sources} ${HPX_WITH_UNITY_BUILD_OPTION}
)

# see #6579
if(MSVC AND Boost_VERSION_STRING VERSION_LESS "1.79.0")
target_compile_definitions(io_counters_component PRIVATE NOMINMAX)
endif()

add_hpx_pseudo_dependencies(
components.performance_counters.io io_counters_component
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ add_hpx_component(
SOURCES ${memory_sources} ${HPX_WITH_UNITY_BUILD_OPTION}
)

# see #6579
if(MSVC AND Boost_VERSION_STRING VERSION_LESS "1.79.0")
target_compile_definitions(memory_counters_component PRIVATE NOMINMAX)
endif()

add_hpx_pseudo_dependencies(
components.performance_counters.memory_counters memory_counters_component
)
Expand Down
5 changes: 5 additions & 0 deletions examples/jacobi_smp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ foreach(jacobi_smp_application ${jacobi_smp_applications})
FOLDER "Examples/JacobiSMP"
)

# see #6579
if(Boost_VERSION_STRING VERSION_LESS "1.79.0")
target_compile_definitions(${jacobi_smp_application} PRIVATE NOMINMAX)
endif()

add_hpx_example_target_dependencies("jacobi_smp" ${jacobi_smp_application})

if(HPX_WITH_TESTS
Expand Down
5 changes: 5 additions & 0 deletions libs/core/affinity/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,8 @@ add_hpx_module(
DEPENDENCIES Hwloc::hwloc
CMAKE_SUBDIRS tests
)

# see #6579
if(MSVC AND Boost_VERSION_STRING VERSION_LESS "1.79.0")
target_compile_definitions(hpx_affinity PRIVATE NOMINMAX)
endif()
5 changes: 5 additions & 0 deletions libs/core/batch_environments/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,8 @@ add_hpx_module(
hpx_type_support
CMAKE_SUBDIRS examples tests
)

# see #6579
if(MSVC AND Boost_VERSION_STRING VERSION_LESS "1.79.0")
target_compile_definitions(hpx_batch_environments PRIVATE NOMINMAX)
endif()
5 changes: 5 additions & 0 deletions libs/full/performance_counters/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,8 @@ add_hpx_module(
hpx_statistics
CMAKE_SUBDIRS examples tests
)

# see #6579
if(MSVC AND Boost_VERSION_STRING VERSION_LESS "1.79.0")
target_compile_definitions(hpx_performance_counters PRIVATE NOMINMAX)
endif()
Loading