PnMPI
PnMPI copied to clipboard
CMake failure with latest CMake version
With CMake 3.20.3, I see the following error (while still 3.16 succeeds):
CMake Error: install(EXPORT "pnmpi-libs" ...) includes target "pnmpi" which requires target "pnmpi_debug" that is not in any export set.
and the same error for pnmpi_modules, pnmpi_service, and pnmpi_wrapper.
I think, the reason for packaging these intermediate targets was to avoid redundant compilation of the object files. My suggestion would be to change the targets from OBJECT to STATIC, install the static libraries with EXPORT and set(CMAKE_POSITION_INDEPENDENT_CODE ON).