only trying to link darmaris when requested

This commit is contained in:
Kai Bao 2024-05-28 15:15:37 +02:00
parent 8199342ce9
commit 481c4830b5

View File

@ -793,7 +793,7 @@ if(USE_BDA_BRIDGE)
endif()
endif()
if(Damaris_FOUND)
if(USE_DAMARIS_LIB AND Damaris_FOUND)
target_link_libraries(opmsimulators PUBLIC damaris)
endif()