BINDIR, inused variable?

Support for running, installing or compiling OpenMW

Before you submit a bug report for the first time, please read: Bug reporting guidelines
Locked
Nobrakal
Posts: 31
Joined: 26 Jun 2013, 16:35

BINDIR, inused variable?

Post by Nobrakal »

Hi all,

I try to package openmw-0.27 for rpmfusion repository. But I have a problem.
Binaries are put in /usr/game while they must be in to /usr/bin for Fedora. So, I use cmake -DBINDIR=/usr/bin, and cmake return:

Code: Select all

CMake Warning:
  Manually-specified variables were not used by the project:

    BINDIR
Well, a bug in the Cmake files. I hard set the binaries directory into the CMakeLists. But, the problem still! I don't understand.... The cmake_install.txt fille contain:

Code: Select all

IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
  list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES
   "/usr/bin/openmw")
  IF (CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION)
    message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
  ENDIF (CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION)
  IF (CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION)
    message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
  ENDIF (CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION)
FILE(INSTALL DESTINATION "/usr/bin" TYPE PROGRAM FILES "/home/nobrakal/rpmbuild/BUILD/openmw-0.27.0/build/openmw")
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
I don't understand :/ Can you help me?

Thank you in advance,

Alexandre
Locked