MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0013198 | CMake | Modules | public | 2012-05-06 13:51 | 2016-06-10 14:31 |
| Reporter | Modestas Vainius | ||||
| Assigned To | Richard Shaw | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | amd64 | OS | Debian GNU/Linux | OS Version | sid |
| Product Version | CMake 2.8.8 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0013198: FindFLTK cannot be called multiple times | ||||
| Description | Hello, original bug has originally been reported at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=671746 [^] ---------------------- FLTK cannot be found more than once: % cat CMakeLists.txt cmake_minimum_required(VERSION 2.8) find_package(FLTK) find_package(FLTK) % cmake . CMake Error at /usr/share/cmake-2.8/Modules/FindFLTK.cmake:134 (IF): if given arguments: "EXISTS" "/usr/lib/fltk" "/usr/include/FLTKConfig.cmake" Unknown arguments specified Call Stack (most recent call first): CMakeLists.txt:4 (find_package) -- Configuring incomplete, errors occurred! ------------------------ The problem is that FLTK_INCLUDE_DIR is a list when FindFLTK is called the second time. The list was created by: LIST(APPEND FLTK_LIBRARIES ${FLTK_GL_LIBRARY} ${OPENGL_gl_LIBRARY}) However, FLTK_DIR is expected to be a single variable: IF(FLTK_INCLUDE_DIR) SET(FLTK_DIR ${FLTK_INCLUDE_DIR}) ENDIF(FLTK_INCLUDE_DIR) .... IF(EXISTS ${FLTK_DIR}/FLTKConfig.cmake) SET(FLTK_BUILT_WITH_CMAKE 1) ENDIF(EXISTS ${FLTK_DIR}/FLTKConfig.cmake) | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2012-05-06 13:51 | Modestas Vainius | New Issue | |||
| 2012-05-07 08:31 | Brad King | Note Added: 0029411 | |||
| 2012-05-07 08:31 | Brad King | Status | new => backlog | ||
| 2014-09-03 09:25 | Richard Shaw | Note Added: 0036709 | |||
| 2014-09-03 09:48 | Brad King | Assigned To | => Richard Shaw | ||
| 2014-09-03 09:48 | Brad King | Status | backlog => assigned | ||
| 2014-09-03 09:49 | Brad King | Note Added: 0036710 | |||
| 2014-09-03 10:02 | Richard Shaw | Note Added: 0036712 | |||
| 2014-09-03 10:17 | Brad King | Note Added: 0036715 | |||
| 2014-09-03 16:10 | Richard Shaw | Note Added: 0036728 | |||
| 2016-06-10 14:28 | Kitware Robot | Note Added: 0042042 | |||
| 2016-06-10 14:28 | Kitware Robot | Status | assigned => resolved | ||
| 2016-06-10 14:28 | Kitware Robot | Resolution | open => moved | ||
| 2016-06-10 14:31 | Kitware Robot | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||