[cmake-developers] [CMake 0012577]: CMAKE_SYSTEM_XXX variables should not be modified when cross-compiling
Mantis Bug Tracker
mantis at public.kitware.com
Mon Nov 14 09:23:52 EST 2011
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=12577
======================================================================
Reported By: Mathias Gaunard
Assigned To:
======================================================================
Project: CMake
Issue ID: 12577
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2011-11-14 09:23 EST
Last Modified: 2011-11-14 09:23 EST
======================================================================
Summary: CMAKE_SYSTEM_XXX variables should not be modified
when cross-compiling
Description:
The file Modules/Platform/UnixPaths.cmake always appends /usr/local and other
paths to CMAKE_SYSTEM_PREFIX_PATH when on a Unix-like system, and likewise for
include and library paths.
This prevents setting up some cross-compiling scenarios which cannot be set-up
using the CMAKE_FIND_ROOT_PATH mechanism.
I think all CMAKE_SYSTEM_XXX variables defined in a Toolchain file should have
priority and not be modified.
Putting those variables in the cache does not work either, the variables can
still be modified.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2011-11-14 09:23 Mathias GaunardNew Issue
======================================================================
More information about the cmake-developers
mailing list