Re: [CMake] Trouble with CMAKE_EXE_LINKER_FLAGS not honored

2019-06-05 Thread Bryan Christ
Tom, That was a really helpful tip. At least as far as building goes, I've ported my app. Now on to debugging the system nuances. Ty! On Wed, Jun 5, 2019 at 12:13 PM Tom Finegan wrote: > > On Wed, Jun 5, 2019 at 9:29 AM Bryan Christ > wrote: > >> Tom, >> >&

Re: [CMake] Trouble with CMAKE_EXE_LINKER_FLAGS not honored

2019-06-05 Thread Bryan Christ
gt; You can also use target_link_libraries to pass linker flags: > > https://cmake.org/cmake/help/latest/command/target_link_libraries.html > > On Tue, Jun 4, 2019 at 1:12 PM Bryan Christ > wrote: > >> For building my project on Linux with gcc I set the following. >> >> set(CM

Re: [CMake] Linking on OSX

2019-06-05 Thread Bryan Christ
s.h (not ncurses.h) here. > /usr/include/curses.h. > > Regards, > > Juan > > > On 6/4/19 12:56 PM, Bryan Christ wrote: > > Juan, > > > > Thanks for your suggestions. I went through that thread pretty > > thoroughly trying all of the recommended tips

Re: [CMake] Linking on OSX

2019-06-04 Thread Bryan Christ
Indeed. They all have their nuances :) On Tue, Jun 4, 2019 at 4:36 PM Guy Harris wrote: > On Jun 4, 2019, at 2:27 PM, Bryan Christ wrote: > > > Thanks for the explanation. Yes. The use of the term Library certainly > added to my confusion. I've been coding on Linux fo

Re: [CMake] Linking on OSX

2019-06-04 Thread Bryan Christ
n 4, 2019, at 1:33 PM, Bryan Christ wrote: > > > I would agree with you, but I've been told that OSX is moving away from > it's Unix heritage and placing libraries in non-traditional locations (not > /usr or /usr/local) and that's going to be increa

Re: [CMake] Linking on OSX

2019-06-04 Thread Bryan Christ
9, at 10:56 AM, Bryan Christ wrote: > > > Thanks for your suggestions. I went through that thread pretty > thoroughly trying all of the recommended tips and, unfortunately, nothing > seemed to work. I also tried running that open command you cited, but > there are still no in

Re: [CMake] Linking on OSX

2019-06-04 Thread Bryan Christ
Guy, I would agree with you, but I've been told that OSX is moving away from it's Unix heritage and placing libraries in non-traditional locations (not /usr or /usr/local) and that's going to be increasingly the norm in the future. https://apple.stackexchange.com/questions/337940/why-is-usr-inclu

[CMake] Trouble with CMAKE_EXE_LINKER_FLAGS not honored

2019-06-04 Thread Bryan Christ
For building my project on Linux with gcc I set the following. set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--no-as-needed") Later, if, the system appears to be OSX, I change it: if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin") set(CMAKE_EXE_LINKER_FLAGS "-Wl,-undefined -Wl,dynami

Re: [CMake] Linking on OSX

2019-06-04 Thread Bryan Christ
for_macOS_10.14.pkg > > for libraries and includes to be put into /usr. > > Regards, > > Juan > > > On 6/3/19 5:16 PM, Bryan Christ wrote: > > New to this mailing list so I hope I'm asking this in the right venue... > > > > I'm trying to port my applica

Re: [CMake] Linking on OSX

2019-06-04 Thread Bryan Christ
pen > > /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg > > for libraries and includes to be put into /usr. > > Regards, > > Juan > > > On 6/3/19 5:16 PM, Bryan Christ wrote: > > New to this mailing list so I hope I&

Re: [CMake] Linking on OSX

2019-06-03 Thread Bryan Christ
t; According to this: > https://github.com/neovim/neovim/issues/9050 > > It looks like macOS made it so you have to do something like this: > open > > /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg > > for libraries and includes to be put into /usr.

[CMake] Linking on OSX

2019-06-03 Thread Bryan Christ
New to this mailing list so I hope I'm asking this in the right venue... I'm trying to port my application (a program and a shared library) to OSX. It was rather easy to modify my CMake script to go from Linux and add in FreeBSD. OSX is giving me a lot of problems though. First of all find_packa