Third-party scotch build failure when using third-party zlib build
When building scotch as a third-party dependency and also building zlib as a third-party dependency, scotch fails:
...
[ ?%]Performing build step for 'scotch-6.0.4'
/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
...
CMakeFiles/Makefile2:168: recipe for target 'CMakeFiles/scotch-6.0.4.dir/all' failed
...
libz.a
, libz.so.1.2.7
, libz.so
and libz.so.1
are all present in build/ThirdParty/dist/lib
. zlib.h
is present in build/ThirdParty/dist/include
so it looks like the scotch build configuration is just not picking up headers and library files in the build/ThirdParty/dist
directories.