ParaView plugin compilation: syntax adjustments for newer versions of CMake
This commit is contained in:
parent
903e06f5ab
commit
1c5b0bc3cc
1 changed files with 18 additions and 7 deletions
|
@ -65,13 +65,24 @@ 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
|
||||||
|
|
||||||
TARGET_LINK_LIBRARIES(
|
if(${CMAKE_VERSION} VERSION_LESS "2.8.12")
|
||||||
PVFoamReader_SM
|
TARGET_LINK_LIBRARIES(
|
||||||
foam
|
PVFoamReader_SM
|
||||||
finiteVolume
|
foam
|
||||||
vtkPVFoam
|
finiteVolume
|
||||||
pqCore
|
vtkPVFoam
|
||||||
)
|
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
|
||||||
|
|
||||||
|
|
Reference in a new issue