If one wants to specify additional linked flags, those should be appended to CMAKE_SHARED_LINKER_FLAGS, not overwrite it as this would lead to the LDFLAGS environment variable to be ignored, leading to linking errors in some environments (for example conda).
If one wants to specify additional linked flags, those should be appended to
CMAKE_SHARED_LINKER_FLAGS
, not overwrite it as this would lead to theLDFLAGS
environment variable to be ignored, leading to linking errors in some environments (for example conda).For more details see: