ParaView plugin compilation: syntax adjustments for newer versions of CMake

This commit is contained in:
Martin Beaudoin 2018-07-01 22:51:57 -04:00
parent 903e06f5ab
commit 1c5b0bc3cc

View file

@ -65,6 +65,7 @@ ADD_PARAVIEW_PLUGIN(
if(NOT FOAM_FOUND) if(NOT FOAM_FOUND)
# Config when compiling FOAM library with wmake # Config when compiling FOAM library with wmake
if(${CMAKE_VERSION} VERSION_LESS "2.8.12")
TARGET_LINK_LIBRARIES( TARGET_LINK_LIBRARIES(
PVFoamReader_SM PVFoamReader_SM
foam foam
@ -72,6 +73,16 @@ if(NOT FOAM_FOUND)
vtkPVFoam vtkPVFoam
pqCore pqCore
) )
else()
TARGET_LINK_LIBRARIES(
PVFoamReader_SM
PUBLIC foam
finiteVolume
vtkPVFoam
pqCore
)
endif()
else() else()
# Config when compiling FOAM library with cmake # Config when compiling FOAM library with cmake