Re: [CMake] Best way to append "--no-undefined" to shared link flags?

2017-07-18 Thread Robert Dailey
+CMake dev list After googling I came up with this: set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" ) After talking more with the NDK devs on github though, they seem to indicate this should happen by default (or at least, it does with the CMake that ships

[CMake] Best way to append "--no-undefined" to shared link flags?

2017-07-18 Thread Robert Dailey
For only compilers that support it (I guess any clang/gcc compiler?), I want my shared libs to link with "--no-undefined". What is the best (most modern) way using CMake 3.9.0 and forward to do this? Is it still to explicitly set CMAKE_SHARED_LINKER_FLAGS? How does this impact using toolchain