Re: [CMake] Possible inconsistent behavior in target_sources() and CMake 3.14

2019-04-15 Thread Michele Rosso
Hi Craig, thanks for the clarification. Best, Michele On Mon, Apr 15, 2019 at 2:09 AM Craig Scott wrote: > > > On Wed, Apr 3, 2019 at 11:10 AM Michele Rosso wrote: > >> Hello, >> according to the doc for CMake 3.14, target_sources() interprets relative >> source file paths as being relative t

Re: [CMake] Possible inconsistent behavior in target_sources() and CMake 3.14

2019-04-15 Thread Craig Scott
On Wed, Apr 3, 2019 at 11:10 AM Michele Rosso wrote: > Hello, > according to the doc for CMake 3.14, target_sources() interprets relative > source file paths as being relative to the current source directory, i.e. > it should > prepend CMAKE_CURRENT_SOURCE_DIR to the relative paths given by the u

[CMake] Possible inconsistent behavior in target_sources() and CMake 3.14

2019-04-02 Thread Michele Rosso
Hello, according to the doc for CMake 3.14, target_sources() interprets relative source file paths as being relative to the current source directory, i.e. it should prepend CMAKE_CURRENT_SOURCE_DIR to the relative paths given by the user. However, this is not the case if the target and the sources