Problem with find_package(dolfin 0.9.11 REQUIRED) in external project

Bug #791831 reported by Benjamin Kehlet
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DOLFIN
Fix Released
Medium
Johannes Ring

Bug Description

In the CMakeLists.txt file for Meshbuilder we have

find_package(dolfin REQUIRED)

which works fine, but when adding a version number to

find_package(dolfin 0.9.11 REQUIRED)

CMake complains:

CMake Error at CMakeLists.txt:23 (find_package):
  Could not find a configuration file for package dolfin.

  Set dolfin_DIR to the directory containing a CMake configuration file for
  dolfin. The file will have one of the following names:

    dolfinConfig.cmake
    dolfin-config.cmake

I suspected this could be related to the '+'-character in "0.9.11+" but the same happens when using a stable release of Dolfin (0.9.11).

Related branches

Johannes Ring (johannr)
Changed in dolfin:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Johannes Ring (johannr)
milestone: none → 0.9.12
Johannes Ring (johannr)
Changed in dolfin:
status: Confirmed → Fix Committed
Anders Logg (logg)
Changed in dolfin:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.