Install the cmake helper scripts

Bug #1685982 reported by Léonard G
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
proj (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

When compiled from source with cmake, the library installs the cmake helper scripts allowing find_package(PROJ4) to work.

They are not shipped with the package.

Revision history for this message
Bas Couwenberg (sebastic) wrote :

The proj package is built with Autotools, not CMake.

Ubuntu does not maintain the proj package, so this will not get fixed by filing a bug in Launchpad.

Including the CMake files in libproj-dev won't be sufficient, as it will take several releases until this change finds its way into the package in Ubuntu. But that doesn't get it included in other distributions.

You should include a FindPROJ.cmake in your project and not rely on upstream to have installed the file.

Changed in proj (Ubuntu):
status: New → Invalid
Revision history for this message
Léonard G (leonard-gerard) wrote :

I am not sure I understand what you are saying.

When building from sources, using Autotools to locally install one would do
```
./configure
make install
```
This will not install the CMake helper scripts, but doing (in source for simplicity)
```
cmake .
make install
```
will install everything the previous method would plus the useful CMake stuff.

Since I am not sure how to find out how the deb package is created (not seeing it in their github page), I assume that you are saying that the deb package is generated with Autotools?

Revision history for this message
Léonard G (leonard-gerard) wrote :

You are saying Launchpad is the wrong place, where should I look for more info / place to help?

Revision history for this message
Rashad Kanavath (rashadkm) wrote : Re: [Bug 1685982] Re: Install the cmake helper scripts

On Tue, Apr 25, 2017 at 9:16 AM, Léonard G <email address hidden>
wrote:

> I am not sure I understand what you are saying.
>
> When building from sources, using Autotools to locally install one would do
> ```
> ./configure
> make install
> ```
> This will not install the CMake helper scripts, but doing (in source for
> simplicity)
> ```
> cmake .
> make install
> ```
> will install everything the previous method would plus the useful CMake
> stuff.
>
> Since I am not sure how to find out how the deb package is created (not
> seeing it in their github page), I assume that you are saying that the
> deb package is generated with Autotools?
>

Hello,

Bas was saying, proj4 package is not using a "cmake build" in the package.
proj4 is using
 ./configure && make (autotools)

Best way is to get a copy of findPROJ4.cmake into your tree.
see for instance:
https://github.com/mloskot/cmake-modules/blob/master/modules/FindPROJ4.cmake

with this your find_package will work.
https://cmake.org/cmake/help/v3.0/command/find_package.html

> --
> You received this bug notification because you are a member of
> UbuntuGIS, which is subscribed to proj in Ubuntu.
> https://bugs.launchpad.net/bugs/1685982
>
> Title:
> Install the cmake helper scripts
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/proj/+bug/1685982/+subscriptions
>

--
Regards,
   Rashad

Revision history for this message
Bas Couwenberg (sebastic) wrote :

> You are saying Launchpad is the wrong place, where should I look for more info / place to help?

The proj package is maintained by the Debian GIS team. To contribute see:

 https://pkg-grass.alioth.debian.org/policy/index.html#contribute

Revision history for this message
Léonard G (leonard-gerard) wrote :

Thanks.

> On Apr 25, 2017, at 1:00 AM, Bas Couwenberg <email address hidden> wrote:
>
>> You are saying Launchpad is the wrong place, where should I look for
> more info / place to help?
>
> The proj package is maintained by the Debian GIS team. To contribute
> see:
>
> https://pkg-grass.alioth.debian.org/policy/index.html#contribute
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1685982
>
> Title:
> Install the cmake helper scripts
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/proj/+bug/1685982/+subscriptions

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.