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

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

2017-07-02 Thread J Decker
It is not generated; because it is generated during a the build phase not the generate phase. So only the logical idea of the file exists. On Sun, Jul 2, 2017 at 12:12 AM, Eric Noulard wrote: > Needless to say that your example should work but somehow CMake does not > see that the referred file

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

2017-07-02 Thread Eric Noulard
Needless to say that your example should work but somehow CMake does not see that the referred file is GENERATED. Le 2 juil. 2017 09:11, "Eric Noulard" a écrit : > Is the referred file created? > Does your actual command creating the file doing it in the source tree and > not in the build tree?

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

2017-07-02 Thread Eric Noulard
Is the referred file created? Does your actual command creating the file doing it in the source tree and not in the build tree? Are you building in-source or out of source? Could you give us us a toy example which shows the issue? Le 2 juil. 2017 04:32, "J Decker" a écrit : Known issue? Or jus

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

2017-07-01 Thread J Decker
Known issue? Or just doesn't require a response? On Wed, Jun 28, 2017 at 6:05 AM, J Decker wrote: > I have this chain of makefiles. It adds a custom rule to build a source > file, and then a subdirectory cannot reference that file. > > The first is added custom rule for M:/tmp/cmake-chain/sub/

[CMake] CmakeLists chain cannot find source added with add_custom_command

2017-06-28 Thread J Decker
I have this chain of makefiles. It adds a custom rule to build a source file, and then a subdirectory cannot reference that file. The first is added custom rule for M:/tmp/cmake-chain/sub/src/sack.c and then later cannot find M:/tmp/cmake-chain/sub/src/sack.c though it's really referencing it as