I see, thanks.
cheers,
Erik Sjölund
On Fri, Dec 5, 2014 at 7:32 PM, Brad King wrote:
> On 12/05/2014 04:28 AM, Erik Sjölund wrote:
>> The CMake documentation doesn't mention that the order matters:
>> http://www.cmake.org/cmake/help/v3.1/command/file.html#command:file
>>
>> Why does the order of
On 12/05/2014 04:28 AM, Erik Sjölund wrote:
> The CMake documentation doesn't mention that the order matters:
> http://www.cmake.org/cmake/help/v3.1/command/file.html#command:file
>
> Why does the order of the options in file(GENERATE) matter?
It was always implemented that way:
http://www.cma
I tried this out:
file(GENERATE INPUT ${CMAKE_CURRENT_SOURCE_DIR}/script.sh OUTPUT
${CMAKE_CURRENT_BINARY_DIR}/script.sh)
but CMake failed with this error message:
"file Incorrect arguments to GENERATE subcommand."
If I reverse the order of the options INPUT and OUTPUT it works just fine.
file(