On Wed, Jun 23, 2010 at 15:41, Eric Noulard <[email protected]> wrote:
> 2010/6/23 Magnus Therning <[email protected]>:
[...]
>> - The variable CMAKE_INSTALL_PREFIX is not used at all during RPM
>> building.  CMAKE_INSTALL_PREFIX is /usr/local, but files get put into
>> /usr in the RPM.  Is this a bug?
>
> It should be using it.

Here's an example of what I mean:

  bash-3.2# cmake ..
  -- Found OCAML: 3.11.0
  -- prefix: /usr/local
  -- Configuring done
  -- Generating done
  -- Build files have been written to: /myrepos/ocaml-libs.hg/_build
  bash-3.2# make DESTDIR=_install install > /dev/null
  bash-3.2# tree _install/
  _install/
  `-- usr
      `-- local
          `-- lib
              `-- ocaml
                  `-- ocamltest
                      |-- META
                      |-- ocamltest.a
                      |-- ocamltest.cma
                      |-- ocamltest.cmi
                      |-- ocamltest.cmxa
                      |-- ocamltest.ml
                      `-- ocamltest.mli

  5 directories, 7 files
  bash-3.2# make package > /dev/null
  bash-3.2# rpm -ql -p ocaml-libs-0.0.0-Linux.rpm
  /usr
  /usr/lib
  /usr/lib/ocaml
  /usr/lib/ocaml/ocamltest
  /usr/lib/ocaml/ocamltest/META
  /usr/lib/ocaml/ocamltest/ocamltest.a
  /usr/lib/ocaml/ocamltest/ocamltest.cma
  /usr/lib/ocaml/ocamltest/ocamltest.cmi
  /usr/lib/ocaml/ocamltest/ocamltest.cmxa
  /usr/lib/ocaml/ocamltest/ocamltest.ml
  /usr/lib/ocaml/ocamltest/ocamltest.mli

> Which version of CMake/CPack are you using.
>
> Could you try:
> cpack -D CPACK_RPM_PACKAGE_DEBUG=1 -G RPM
>
> and send me the output?
>
> More infos on how to control CPackRPM with CPACK_RPM_xxx vars:
> http://www.itk.org/Wiki/CMake:CPackPackageGenerators#RPM_.28Unix_Only.29
> or
> cmake --help-module CPackRPM

I'll take a look at this since I need to fix what's included in the source RPM
next :-)

/M

-- 
Magnus Therning                        (OpenPGP: 0xAB4DFBA4)
magnus@therning.org          Jabber: magnus@therning.org
http://therning.org/magnus         identi.ca|twitter: magthe
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to