On 23/06/2009 03:16, Ralf Habacker wrote:
> The executable name of the config compiler could be changed in
> kdelibs\kdecore\kconfig_compiler\CMakeLists.txt by adding an OUTPUT_NAME
> property.

Ralf,

I have been unable to make this work.

1) I presume you meant the following:

set_target_properties(kconfig_compiler PROPERTIES OUTPUT_NAME 
kconfig_compiler4)

That creates kconfig_compiler4.exe, but it still make 
kconfig_compiler.exe.shell (no '4') which looks for kconfig_compiler.exe.

2) Adding "RENAME kconfig_compiler4" to the install(TARGETS ...) command 
does nothing.

3) Changing the install(TARGETS ...) command to

install(PROGRAMS 
${EXECUTABLE_OUTPUT_PATH}/kconfig_compiler${CMAKE_EXECUTABLE_SUFFIX}
EXPORT kdelibsToolsTargets RENAME 
kconfig_compiler4${CMAKE_EXECUTABLE_SUFFIX} DESTINATION ${BIN_INSTALL_DIR} )

causes a CMake Error: "install PROGRAMS given RENAME option with more 
than one file".  Placing RENAME before EXPORT causes a different error: 
"install PROGRAMS given unknown argument "EXPORT"".

4) Changing the target name throughout the package works, but it makes 
for a sizable patch.

Is there another way to do this?


Yaakov
Cygwin Ports

------------------------------------------------------------------------------
_______________________________________________
Cygwin-ports-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cygwin-ports-general

Reply via email to