View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014337CMakeCMakepublic2013-08-03 12:302016-06-10 14:31
ReporterBoulougou 
Assigned ToKitware Robot 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionmoved 
Platformx86_64OSUbuntuOS Version12.10
Product VersionCMake 2.8.9 
Target VersionFixed in Version 
Summary0014337: CMAKE_FIND_ROOT_PATH is ignored in CMake 2.8.9, works for CMake 2.8.7
DescriptionI 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.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0035399)
Dmitriy Vilkov (reporter)
2014-03-14 06:43
edited on: 2014-03-14 07:01

I have the same issue with CMake 2.8.12.
Even "ONLY_CMAKE_FIND_ROOT_PATH" for find_path does not help.
But setting "PATHS ${CMAKE_FIND_ROOT_PATH}" and "NO_CMAKE_FIND_ROOT_PATH" works.

(0039342)
Eric Beuque (reporter)
2015-08-28 04:21

I got the same with CMake 3.3.1.

I compile with on Windows 7 using a Mingw32 compiler (i686-4.8.2-posix-dwarf-rt_v3-rev4).

Trying to find include fails. I needed to add path in the INCLUDE env variable to get it works.
(0042343)
Kitware Robot (administrator)
2016-06-10 14:29

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2013-08-03 12:30 Boulougou New Issue
2014-03-14 06:43 Dmitriy Vilkov Note Added: 0035399
2014-03-14 06:44 Dmitriy Vilkov Note Edited: 0035399
2014-03-14 07:01 Dmitriy Vilkov Note Edited: 0035399
2015-08-28 04:21 Eric Beuque Note Added: 0039342
2016-06-10 14:29 Kitware Robot Note Added: 0042343
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team