Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
CMake
CMake
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 2,680
    • Issues 2,680
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 23
    • Merge Requests 23
  • Packages
    • Packages
    • Container Registry
  • External Wiki
    • External Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • CMake
  • CMakeCMake
  • Issues
  • #17039

Closed
Open
Opened Jul 07, 2017 by Kris Thielemans@krthie
  • Report abuse
  • New issue
Report abuse New issue

FindHDF5 fails when multiple imported configurations exist

When FindHDF5 finds config.cmake, my previous accepted merge request !463 (merged) added code to get details from the imported targets. Unfortunately this has a bug when multiple configurations are found. The relevant lines are

           get_target_property(_imported_conf ${HDF5_${_lang}_TARGET}${_suffix} IMPORTED_CONFIGURATIONS)
           get_target_property(_lang_location ${HDF5_${_lang}_TARGET}${_suffix} IMPORTED_IMPLIB_${_imported_conf} )

The 2nd line generates an error

get_target_property called with incorrect number of arguments

To fix this, we presumably have to select a preferred configuration. I'm not sure what the best strategy is for that. @brad.king can you help?

Edited Jul 07, 2017 by Brad King
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Reference: cmake/cmake#17039