[cmake-developers] [CMake 0013241]: WriteBasicConfigVersionFile produces bad files without CMAKE_SIZEOF_VOID_P
Mantis Bug Tracker
mantis at public.kitware.com
Mon May 21 11:49:49 EDT 2012
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=13241
======================================================================
Reported By: Brad King
Assigned To: Alex Neundorf
======================================================================
Project: CMake
Issue ID: 13241
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
Target Version: CMake 2.8.9
======================================================================
Date Submitted: 2012-05-21 11:49 EDT
Last Modified: 2012-05-21 11:49 EDT
======================================================================
Summary: WriteBasicConfigVersionFile produces bad files
without CMAKE_SIZEOF_VOID_P
Description:
Modules/BasicConfigVersion-*.cmake.in contain the code
# check that the installed version has the same 32/64bit-ness as the one which
is currently searching:
if(NOT "${CMAKE_SIZEOF_VOID_P}" STREQUAL "@CMAKE_SIZEOF_VOID_P@")
math(EXPR installedBits "@CMAKE_SIZEOF_VOID_P@ * 8")
set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)")
set(PACKAGE_VERSION_UNSUITABLE TRUE)
endif()
When this is configured with an empty CMAKE_SIZEOF_VOID_P the resulting file
breaks. This breaks find_package calls that load the version file with an
outright error instead of reporting an unsuitable version.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-05-21 11:49 Brad King New Issue
2012-05-21 11:49 Brad King Status new => assigned
2012-05-21 11:49 Brad King Assigned To => Alex Neundorf
======================================================================
More information about the cmake-developers
mailing list