Re: [CMake] cmake create executable Undefined symbols for architecture x86_64:

2017-07-05 Thread Micha Hergarden
On 05-07-17 22:50, Sean Wayland wrote: > I am attempting to write a cmakelists.txt file for an application. > The application has a couple of dependencies. > I have been able to build targets for the dependencies but when I try > and add an executable for the main application I encounter this error

[CMake] cmake create executable Undefined symbols for architecture x86_64:

2017-07-05 Thread Sean Wayland
I am attempting to write a cmakelists.txt file for an application. The application has a couple of dependencies. I have been able to build targets for the dependencies but when I try and add an executable for the main application I encounter this error. Undefined symbols for architecture x86_64:

Re: [CMake] CmakeLists chain cannot find source added with add_custom_command

2017-07-05 Thread J Decker
On Wed, Jul 5, 2017 at 4:05 AM, J Decker wrote: > Was more of a style thing... I had (from another project) a cmakelists > includable script that builds an amalgamation of sources (makes the > compilation much faster overall because it doesn't have to read megs of > headers for windows.h et al. f

Re: [CMake] CmakeLists chain cannot find source added with add_custom_command

2017-07-05 Thread J Decker
Was more of a style thing... I had (from another project) a cmakelists includable script that builds an amalgamation of sources (makes the compilation much faster overall because it doesn't have to read megs of headers for windows.h et al. for 50 sources but then only 1.) so I was updating to use t

Re: [CMake] CmakeLists chain cannot find source added with add_custom_command

2017-07-05 Thread Eric Noulard
OK right. I missed the proper FAQ entry, thanks Nicholas for pointing it out. Eric 2017-07-05 12:10 GMT+02:00 Nicholas Devenish : > Hi, > > It looks like this is the issue covered in > https://cmake.org/Wiki/CMake_FAQ#How_can_I_add_a_ > dependency_to_a_source_file_which_is_generated_in_a_subdire

Re: [CMake] CmakeLists chain cannot find source added with add_custom_command

2017-07-05 Thread Nicholas Devenish
Hi, It looks like this is the issue covered in https://cmake.org/Wiki/CMake_FAQ#How_can_I_add_a_dependency_to_a_source_file_which_is_generated_in_a_subdirectory.3F and bug https://gitlab.kitware.com/cmake/cmake/issues/14633 ? I suppose if you are writing your own systems from scratch it's easy not