[CMake] CMake 2.8.0 RC 7 ready for testing!
Bill Lorensen
bill.lorensen at gmail.com
Fri Nov 13 12:57:34 EST 2009
Bill,
Is there some way this can be added to the cmake test suite? Remember,
"If it's not tested, it's broken".
Bill
On Thu, Nov 12, 2009 at 5:34 PM, Bill Hoffman <bill.hoffman at kitware.com> wrote:
> James Bigler wrote:
>
>> CMake then chokes on the PACKAGE_NAME due to the \O which should be \\O.
>> I set the DISPLAY_NAME and INSTALL_DIRECTORY, but the PACKAGE_NAME is set
>> by the cpack_set_if_not_set and sends my string through an extra processing
>> step.
>>
>> I can certainly add my own entry for CPACK_NSIS_PACKAGE_NAME to avoid this
>> now that I know about it, but PACKAGE_NAME is a new variable and my old
>> script broke.
>>
>> James
>>
>>
> Bummer this is certainly a regression from 2.6, (next time please try the rc
> earlier if possible. I was just about to tag 2.8.0 when I read your
> email... This is not an rc regression but has been broken on the entire 2.8
> branch.)
>
> Anyway, this all goes to this bug:
>
> http://public.kitware.com/Bug/view.php?id=8682
>
> So, how to fix?
>
> Does this make sense:
>
>
> # if the user has set CPACK_NSIS_DISPLAY_NAME
> # remember
> if(DEFINED CPACK_NSIS_DISPLAY_NAME)
> SET(CPACK_NSIS_DISPLAY_NAME_SET TRUE)
> endif()
> cpack_set_if_not_set(CPACK_NSIS_DISPLAY_NAME
> "${CPACK_PACKAGE_INSTALL_DIRECTORY}")
>
> # if the user has set CPACK_NSIS_DISPLAY
> # explicitly, then use that as the default
> # value of CPACK_NSIS_PACKAGE_NAME instead
> # of CPACK_PACKAGE_INSTALL_DIRECTORY
> if(CPACK_NSIS_DISPLAY_NAME_SET)
> cpack_set_if_not_set(CPACK_NSIS_PACKAGE_NAME "${CPACK_NSIS_DISPLAY_NAME}")
> else()
> cpack_set_if_not_set(CPACK_NSIS_PACKAGE_NAME
> "${CPACK_PACKAGE_INSTALL_DIRECTORY}")
> endif()
>
>
> That should keep it working like it did for 2.6 right? It works for your
> case, no longer crashes.
>
> -Bill
> _______________________________________________
> 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
>
More information about the CMake
mailing list