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

2017-07-20 Thread Brad King
On 07/18/2017 04:52 PM, Robert Dailey wrote: > set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} > -Wl,--no-undefined" ) That's fine, but you can use `string(APPEND)` to shorten the code: string(APPEND CMAKE_SHARED_LINKER_FLAGS " -Wl,--no-undefined") > After talking more with th

Re: [cmake-developers] 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 w