MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0014060 | CMake | Modules | public | 2013-04-04 08:16 | 2016-06-10 14:31 |
| Reporter | Marcel Loose | ||||
| Assigned To | Kitware Robot | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | Linux | OS | Ubuntu | OS Version | 12.10 |
| Product Version | CMake 2.8.10.2 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0014060: FindGLUT puts NOTFOUND in GLUT_LIBRARIES | ||||
| Description | FindGLUT puts GLUT_Xmu_LIBRARY-NOTFOUND;GLUT_Xi_LIBRARY-NOTFOUND in the variable GLUT_LIBRARIES, when GLUT_FOUND is TRUE. This causes CMake to bail out with the following error: CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: GLUT_Xi_LIBRARY (ADVANCED) linked by target "foo" in directory /home/marcel/temp/cmake/findglut-bug GLUT_Xmu_LIBRARY (ADVANCED) linked by target "foo" in directory /home/marcel/temp/cmake/findglut-bug | ||||
| Steps To Reproduce | 1. Create a CMakeLists.txt file that contains the following: cmake_minimum_required(VERSION 2.8) project(FindGLUT_Bug C) find_package(GLUT) if(GLUT_FOUND) add_executable(foo foo.c) target_link_libraries(foo ${GLUT_LIBRARIES}) endif() 2. Create a (empty) file foo.c 3. Run cmake | ||||
| Additional Information | This bug is also present in cmake 2.8.9. Older versions of cmake (e.g. 2.8.0) set GLUT_FOUND to FALSE, which is probably also not what you'd want, because if I remove the NOTFOUND entries from GLUT_LIBRARIES, everything works fine. Workaround: set(_glut_libraries) foreach(_lib ${GLUT_LIBRARIES}) if(_lib) list(APPEND _glut_libraries ${_lib}) endif() endforeach() set(GLUT_LIBRARIES ${_glut_libraries}) | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2013-04-04 08:16 | Marcel Loose | New Issue | |||
| 2013-04-04 08:40 | Brad King | Assigned To | => Rolf Eike Beer | ||
| 2013-04-04 08:40 | Brad King | Status | new => assigned | ||
| 2013-04-17 06:17 | Rolf Eike Beer | Note Added: 0032855 | |||
| 2013-04-17 08:51 | Marcel Loose | Note Added: 0032858 | |||
| 2015-03-30 11:34 | Orion Poplawski | Note Added: 0038363 | |||
| 2016-02-25 13:07 | Rolf Eike Beer | Assigned To | Rolf Eike Beer => | ||
| 2016-02-25 13:07 | Rolf Eike Beer | Status | assigned => backlog | ||
| 2016-06-10 14:28 | Kitware Robot | Note Added: 0042261 | |||
| 2016-06-10 14:28 | Kitware Robot | Status | backlog => resolved | ||
| 2016-06-10 14:28 | Kitware Robot | Resolution | open => moved | ||
| 2016-06-10 14:28 | Kitware Robot | Assigned To | => Kitware Robot | ||
| 2016-06-10 14:31 | Kitware Robot | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||