SEACSIoss fails to build if Netcdf TPL disabled
Created by: bavier
With master@e9a607a and cmake 3.3.2, and configuring with
$ mkdir build && cd build
$ cmake \
-DTrilinos_ENABLE_SEACASIoss:BOOL=ON \
-DTPL_ENABLE_Netcdf:BOOL=OFF \
..
configuration completes successfully, but with a warning from Cmake:
Processing enabled package: SEACAS (Ioss)
Cmake Warning at cmake/tribits/core/package_arch/TribitsLibraryMacros.cmake:601 (MESSAGE):
WARNING: 'Ioexo_fac' in DEPSLIBS is not a lib defined in the current cmake
project! Such usage is deprecated (and will result in a configure error
soon). If this is an external lib you are trying to link in, it should
likely be handled as a TriBITS TPL. Otherwise, it should be passed in
through IMPORTEDLIBS. However, the only case we have found where
IMPORTEDLIBS had to be used instead of through a proper TriBITS TPL is the
C math library 'm'.
Call Stack (most recent call first):
packages/seacas/libraries/ioss/src/init/CmakeLists.txt:45 (TRIBITS_ADD_LIBRARY)
If I then run make
, I eventually get the following error:
[ 99%] Linking CXX executable cth_pressure_map
ld: cannot find -lIoexo_fac
collect2: error: ld returned 1 exit status
So it seems that some dependencies are not declared correctly.