vcpkg/ports/boost-odeint/opt-mpi.diff
Osyotr 054637a2ae
[boost] Update to 1.86.0 (#40465)
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2024-10-18 13:59:30 -07:00

14 lines
359 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3692bea4a7..29ee7adb1c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -61,7 +61,7 @@ target_link_libraries(boost_numeric_odeint
if(BOOST_ENABLE_MPI)
target_link_libraries(boost_numeric_odeint
INTERFACE
- Boost::mpi
+ $<TARGET_NAME_IF_EXISTS:Boost::mpi>
)
endif()