Hi,<br><br>I&#39;m currently trying to use add_custom_command, but I do not get any output (it&#39;s working fine in other projects, with Bison and Flex).<br><br>Basically, I have a CMakeLists.txt file with<br><br>include(CMakeCallPerl.cmake)<br>
PERL_SCRIPT(&quot;${GLISS_PATH}/<a href="http://nmp2nml.pl">nmp2nml.pl</a>&quot; &quot;ppc.nmp&quot;)<br><br><br>And in my CMakeCallPerl.cmake file :<br><br>find_program(PERL perl)<br>IF(PERL)<br>    MACRO(PERL_SCRIPT SCRIPT FILENAME)<br>
    GET_FILENAME_COMPONENT(PATH &quot;${FILENAME}&quot; PATH)<br>    GET_FILENAME_COMPONENT(PREFIX &quot;${FILENAME}&quot; NAME_WE)<br>    SET(OUTFILE &quot;${PREFIX}.nml&quot;)<br>    MESSAGE(STATUS &quot;${PERL} ${SCRIPT} ${FILENAME} ${OUTFILE}&quot;)<br>
    ADD_CUSTOM_COMMAND(<br>        OUTPUT &quot;${OUTFILE}&quot;<br>        COMMAND &quot;${PERL}&quot;<br>        &quot;${SCRIPT}&quot;<br>        &quot;${FILENAME}&quot;<br>        &quot;${OUTFILE}&quot;<br>    )<br>    SET_SOURCE_FILES_PROPERTIES(&quot;${OUTFILE}&quot; PROPERTIES GENERATED TRUE)<br>
    ENDMACRO(PERL_SCRIPT)<br>ENDIF(PERL)<br><br>What am I doing wrong ?<br><br>Copy/Pasting the MESSAGE output in command line, everything works fine, but not when compiling after generating with CMake.<br>(it looks like this : C:/Win16App/rational/TestRealTime/bin/intel/win32/perl.exe D:/workspace/ppc/../gliss/<a href="http://nmp2nml.pl">nmp2nml.pl</a> ppc.nmp ppc.nml)<br>
There is also no mention for Perl in any CMake generated file.<br>Using Windows XP and MinGW<br><br>Regards,<br><br>Maxime<br>