No subject


Fri Jan 14 08:05:08 EST 2011


"The execute_process command is a newer more powerful version of
exec_program, but the old command has been kept for compatibility."


On Fri, Mar 11, 2011 at 10:34 AM, Tyler <tyler at cryptio.net> wrote:
> I believe the canonical answer is to write the command line you wish
> to execute into a file and use install(SCRIPT ...) instead of
> install(CODE ...).
>
> tyler
>
> On Fri, Mar 11, 2011 at 7:14 AM, Urbach, Marcel [Rohmann GmbH]
> <urbach at rohmann.de> wrote:
>> Hi,
>>
>> I am using Windows 7 and I have tried to register my builded dll files w=
ith
>> regsvr32 after installing them. It works for paths without spaces.
>>
>>
>>
>> INSTALL( CODE
>>
>> =A0=A0=A0 "EXEC_PROGRAM( regsvr32 ARGS \"/s\" ARGS \"C:\\lib\\test.dll\"
>> OUTPUT_VARIABLE POST_INST_OUT RETURN_VALUE POST_INST_RES )"
>>
>> )
>>
>>
>>
>> But when there a spaces inside a path regsvr32 returns with an error:
>>
>> =93Error loading module =93C:\Program=94.
>>
>>
>>
>> INSTALL( CODE
>>
>> =A0=A0=A0 "EXEC_PROGRAM( regsvr32 ARGS \"/s\" ARGS \"C:\\Program
>> Files\\test\\lib\\test.dll\" OUTPUT_VARIABLE POST_INST_OUT RETURN_VALUE
>> POST_INST_RES )"
>>
>> )
>>
>>
>>
>> I have spended the whole day =A0escaping the path in the right way but I=
 don=92t
>> get it.
>>
>>
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the CMake FAQ at:
>> http://www.cmake.org/Wiki/CMake_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.cmake.org/mailman/listinfo/cmake
>>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/openso=
urce/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmak=
e.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>


More information about the CMake mailing list