Giter Site home page Giter Site logo

Comments (7)

Fat-Zer avatar Fat-Zer commented on August 16, 2024

Here is an example patch for such options: https://gist.github.com/Fat-Zer/5845277 .
btw: It would be nice if we could get moduledir from vdpau's pkg-config (like pkg-config vdpau --variable=moduledir), although FindPkgConfig haven't got such features.

from libvdpau-va-gl.

i-rinat avatar i-rinat commented on August 16, 2024

fixed.

from libvdpau-va-gl.

i-rinat avatar i-rinat commented on August 16, 2024

Here is an example patch for such options:

Thanks.

from libvdpau-va-gl.

Fat-Zer avatar Fat-Zer commented on August 16, 2024

Sorry for my tedious exhortation, but you supposed to use CACHE variables for such stuff.

Firstly, this three lines:

if(NOT DEFINED LIB_INSTALL_DIR)
    set(LIB_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})
endif(NOT DEFINED LIB_INSTALL_DIR)

are equivalent to one:

set(LIB_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX} CACHE PATH "<comment>" )

Moreover, the second variant is preferred cause the variable will be prompted in configuration utilities like cmake -I.
Because of that it would be nice to give LIB_SUFFIX it's own declaration as well.

from libvdpau-va-gl.

i-rinat avatar i-rinat commented on August 16, 2024

you supposed to use CACHE variables for such stuff.

Sounds reasonable. Applied.

from libvdpau-va-gl.

Fat-Zer avatar Fat-Zer commented on August 16, 2024

LIB_INSTALL_DIR supposed to point to «lib» dir itself, not vdpau.
AFAIK it's not the rule carved in stone but a lot of packages do so and some build systems [e.g. in gentoo] count on it.

from libvdpau-va-gl.

i-rinat avatar i-rinat commented on August 16, 2024

LIB_INSTALL_DIR supposed to point to «lib» dir itself, not vdpau.

IMO, if build system sets custom LIB_INSTALL_DIR, that is the directory where it expects libraries to go. It's much more confusing to figure out that installer decided to append another directory (vdpau) to it. There is no sense to add another configurable variable either. If one have chosen to change LIB_INSTALL_DIR, he may add such suffix himself if needed.

from libvdpau-va-gl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.