[cmake-developers] [CMake 0014337]: CMAKE_FIND_ROOT_PATH is ignored in CMake 2.8.9, works for CMake 2.8.7
Mantis Bug Tracker
mantis at public.kitware.com
Sat Aug 3 12:30:03 EDT 2013
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=14337
======================================================================
Reported By: Boulougou
Assigned To:
======================================================================
Project: CMake
Issue ID: 14337
Category: CMake
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2013-08-03 12:30 EDT
Last Modified: 2013-08-03 12:30 EDT
======================================================================
Summary: CMAKE_FIND_ROOT_PATH is ignored in CMake 2.8.9,
works for CMake 2.8.7
Description:
I recently checked out my project on an Ubuntu 12.10 installation that has CMake
2.8.9. Until now I was working on a machine with older cmake version(CMake
2.8.7)
I have a toolchain file for cross compilation that sets CMAKE_FIND_ROOT_PATH
variable. And I have several FindXXXX() in my scripts that search for installed
libraries.
However when I run cmake(on the new machine) it complains that it cannot find
the library(openal specifically). Adding a message(${CMAKE_FIND_ROOT_PATH}) at
top of cmake-2.8/Modules/FindOpenAL.cmake reveals that CMAKE_FIND_ROOT_PATH has
the correct value.
I downloaded the latest version(cmake-2.8.11.2-Linux-i386.tar.gz) and it has the
same behavior.
I tried with cmake-2.8.7-Linux-i386.tar.gz and it worked. Exactly the same
toolchain file, same CMakeLists.txt files, just different cmake binary.
I checked documentation and I didn't any major difference between CMake 2.8.7
and CMake 2.8.9.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2013-08-03 12:30 Boulougou New Issue
======================================================================
More information about the cmake-developers
mailing list