I have the following code:

if ( "${CMAKE_SIZEOF_VOID_P}" EQUAL "8" )
        set(CPACK_PACKAGE_FILE_NAME "${PROJECT_NAME}-Win64")
elseif( "${CMAKE_SIZEOF_VOID_P}" EQUAL "4" )
        set(CPACK_PACKAGE_FILE_NAME "${PROJECT_NAME}-Win32")
else()
        set(CPACK_PACKAGE_FILE_NAME "${PROJECT_NAME}-Unknown")
endif()

I properly generate VS 2008 Win64 projects. Everything builds fine. When I 
build the "PACKAGE" project I get a zip file with "-Unknown" in the name. This 
will usually configure OK the first time or so, ie, I get a Zip file name with 
"-Win64" but after a few more configs this seems to revert back to "Unknown". 
Searching the "CMakeCache.txt" file for "CMAKE_SIZEOF_VOID_P" comes up empty. 
Is this some sort of temporary variable? Do I need to store it in my own cache 
variable somewhere?

Thanks for any help
___________________________________________________________
Mike Jackson                      www.bluequartz.net
Principal Software Engineer       mike.jack...@bluequartz.net 
BlueQuartz Software               Dayton, Ohio

_______________________________________________
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

Reply via email to