MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0013128 | CMake | Modules | public | 2012-04-13 15:34 | 2016-06-10 14:31 |
Reporter | devurandom | ||||
Assigned To | Kitware Robot | ||||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | moved | ||
Platform | OS | OS Version | |||
Product Version | CMake 2.8.7 | ||||
Target Version | Fixed in Version | ||||
Summary | 0013128: find_package_handle_standard_args in CONFIG_MODE requires ${NAME}_CONFIG even if ${NAME}_FOUND | ||||
Description | Consider following code, which will always bail out with an error: find_package(Eigen3 QUIET) message(E3F: ${EIGEN3_FOUND}) find_package(Eigen3 QUIET NO_MODULE PATHS "${MY_CONFIG_PATH}") message(E3F: ${EIGEN3_FOUND}) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(Eigen3 CONFIG_MODE) Both E3F messages print TRUE, but FPHSA still aborts with a failure. I assume this is because of following code: IF(FPHSA_CONFIG_MODE) LIST(INSERT FPHSA_REQUIRED_VARS 0 ${_NAME}_CONFIG) and: FOREACH(_CURRENT_VAR ${FPHSA_REQUIRED_VARS}) IF(NOT ${_CURRENT_VAR}) SET(${_NAME_UPPER}_FOUND FALSE) | ||||
Steps To Reproduce | |||||
Additional Information | What I am trying to achieve is the following: Eigen3 should be searched in the system, if it is not found my project comes with a local copy of it (via ${MY_CONFIG_PATH}/Eigen3Config.cmake). No matter where it was found, I would like only one message to be output about the presence or absence of Eigen3. If possible they should look similar, but just point to different paths. I previously had following code: find_package(Eigen3) if (NOT EIGEN3_FOUND) set(EIGEN3_INCLUDE_DIR "${CMAKE_SOURCE_DIR}") find_package(Eigen3 REQUIRED) But that outputs one irritating "Could NOT find ..." message even if Eigen3 is found locally. Further the success message, if Eigen3 was found locally, is missing. | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2012-04-13 15:34 | devurandom | New Issue | |||
2012-04-13 15:47 | devurandom | Note Added: 0029149 | |||
2012-04-13 16:14 | David Cole | Note Added: 0029150 | |||
2012-04-16 09:16 | Brad King | Note Added: 0029171 | |||
2012-04-16 15:46 | Alex Neundorf | Assigned To | => Alex Neundorf | ||
2012-04-16 15:46 | Alex Neundorf | Status | new => assigned | ||
2012-04-16 15:49 | Alex Neundorf | Note Added: 0029185 | |||
2012-04-16 17:40 | devurandom | Note Added: 0029195 | |||
2012-04-18 15:10 | Alex Neundorf | Note Added: 0029223 | |||
2012-04-18 15:15 | Brad King | Note Added: 0029224 | |||
2012-04-18 15:15 | Brad King | Assigned To | Alex Neundorf => | ||
2012-04-18 15:15 | Brad King | Status | assigned => backlog | ||
2016-06-10 14:28 | Kitware Robot | Note Added: 0042024 | |||
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 | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|