aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/boost-odeint/opt-mpi.diff
blob: 01b1cdbb94dbd707dc3bc03a756d747171d764f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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()