Re: [CMake] Generate a file with a custom command as part of build

2017-01-21 Thread Michael Ellery
add_custom_command is the probably the right thing…but it needs to be triggered by a dependency relationship. You will specify public/bundle.js as the OUTPUT parameter of the add_custom_command and then some other target or install command needs to have that file listed in its sources, and then

[CMake] Generate a file with a custom command as part of build

2017-01-21 Thread doug livesey
Hi, I want to call the following command as part of a build: $ ./node_modules/.bin/webpack This should generate a file public/bundle.js I'm really struggling with this. I guess there's something fundamental that I'm not understanding. `add_custom_command` doesn't seem to be doing anything. I wou

Re: [CMake] Strange test failure

2017-01-21 Thread Aaron Boxer
Thanks, Nils, I figured it out. On Jan 20, 2017 2:41 AM, "Nils Gladitz" wrote: > On 01/20/2017 12:59 AM, Aaron Boxer wrote: > > I have a test in my ctest suite that fails both with >> and without a ! at the beginning of the test. >> >> So, >> >> FOO -BAR -BAZ >> >> fails >> >> and >> >> !FOO -BA

Re: [CMake] ExternalProject_Add

2017-01-21 Thread Saad Khattak
>> One possibility is the often mentioned superbuild That is a tempting and I started to go down that route - however, I ran into a problem where my project (which is now also built using ExternalProject_Add) does not have access to the CMake variables. Is the only solution to pass them through th