[cmake-developers] [PATCH] CPackRPM: Fix cross-building rpms

Rolf Eike Beer eike at sf-mail.de
Wed Feb 4 02:30:08 EST 2015


>  # CPACK_RPM_PACKAGE_ARCHITECTURE (optional)
> -if(CPACK_RPM_PACKAGE_ARCHITECTURE)
> +if(NOT CPACK_RPM_PACKAGE_ARCHITECTURE)
> +  execute_process(COMMAND uname "-m"
> +  WORKING_DIRECTORY "${WDIR}"
> +  OUTPUT_VARIABLE CPACK_RPM_PACKAGE_ARCHITECTURE)
> +endif()

You don't need to specify a working directory for uname. Also I assume that 
you want to use OUTPUT_STRIP_TRAILING_WHITESPACE to not have the trailing 
newline in the variable.

Greetings,

Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150204/124ff623/attachment.sig>


More information about the cmake-developers mailing list