cmake doesn't respect CMAKE_SHARED_LINKER_FLAGS set in CMakeLists.txt
I added this line to CMakeLists.txt: set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,defs")
However, this link flag isn't used, and doesn't appear anywhere in the project after it is built. CMakeCache.txt shows a different value.
At the same time, this flag is documented: https://cmake.org/cmake/help/v3.0/variable/CMAKE_SHARED_LINKER_FLAGS.html
The project: https://github.com/supercollider/sc3-plugins
cmake can't just ignore a documented variable. There should also be some form of traceability, so that there should be possible to see who, which lines, assign the variable.