registered and vice versa for release.
> Do you have any ideas to solve this?
>
>
> -Ursprüngliche Nachricht-
> Von: David Cole [mailto:david.c...@kitware.com]
> Gesendet: Dienstag, 15. März 2011 17:05
> An: Urbach, Marcel [Rohmann GmbH]
> Cc: cmake@cmake.org
> Betre
Von: David Cole [mailto:david.c...@kitware.com]
Gesendet: Dienstag, 15. März 2011 17:05
An: Urbach, Marcel [Rohmann GmbH]
Cc: cmake@cmake.org
Betreff: Re: [CMake] INSTALL CODE using EXEC_PROGRAM with spaces in path
Generator expressions (like your "")
are only valid within the context of an add_cust
EXEC_PROGRAM works fine, but there is a problem
> resolving the target name. XXX.dll for release or XXX_d.for debug.
> The second (EXECUTE_PROCESS) never returns from regsvr32 when using regsvr32
> #$ or it says wrong syntax for file name or dir
> name when using regsvr32 INPUT_FILE $
iche Nachricht-
Von: David Cole [mailto:david.c...@kitware.com]
Gesendet: Montag, 14. März 2011 17:17
An: Urbach, Marcel [Rohmann GmbH]
Cc: cmake@cmake.org
Betreff: Re: [CMake] INSTALL CODE using EXEC_PROGRAM with spaces in path
On Mon, Mar 14, 2011 at 11:17 AM, Urbach, Marcel [Rohmann GmbH]
wro
det: Freitag, 11. März 2011 16:50
> An: Tyler
> Cc: Urbach, Marcel [Rohmann GmbH]; cmake@cmake.org
> Betreff: Re: [CMake] INSTALL CODE using EXEC_PROGRAM with spaces in path
>
> Tyler's right. Use install(SCRIPT instead.
>
> And use execute_process instead of exec_program
r
Cc: Urbach, Marcel [Rohmann GmbH]; cmake@cmake.org
Betreff: Re: [CMake] INSTALL CODE using EXEC_PROGRAM with spaces in path
Tyler's right. Use install(SCRIPT instead.
And use execute_process instead of exec_program. It's better.
>From the help at
http://cmake.o
Tyler's right. Use install(SCRIPT instead.
And use execute_process instead of exec_program. It's better.
>From the help at
http://cmake.org/cmake/help/cmake-2-8-docs.html#command:execute_process
:
"The execute_process command is a newer more powerful version of
exec_program, but the old command h
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]
wrote:
> Hi,
>
> I am using Windows 7 and I have tried to register my builded
Hi,
I am using Windows 7 and I have tried to register my builded dll files
with regsvr32 after installing them. It works for paths without spaces.
INSTALL( CODE
"EXEC_PROGRAM( regsvr32 ARGS \"/s\" ARGS \"C:\\lib\\test.dll\"
OUTPUT_VARIABLE POST_INST_OUT RETURN_VALUE POST_INST_RES )"
)