Giter Site home page Giter Site logo

Comments (5)

sergm avatar sergm commented on April 28, 2024

I'd suggest to double-check the actual value of variable LIB_INSTALL_DIR set by CMake in the cache. Using the spell you wrote, it seems to assign the absolute path, while the description says it should contain a relative path. With a minor modification, this works for me:
cmake -DCMAKE_INSTALL_PREFIX="/tmp/mt32" -DLIB_INSTALL_DIR:PATH=lib -Dlibmt32emu_SHARED=OFF ../

<skip...>

Install the project...
-- Install configuration: ""
-- Installing: /tmp/mt32/lib/libmt32emu.a

<skip...>

from munt.

realnc avatar realnc commented on April 28, 2024

Indeed, it uses an absolute path. With -DLIB_INSTALL_DIR=lib, the build directory is getting prepended, so it ends up as <build_dir>/lib.

-DLIB_INSTALL_DIR:PATH=lib on the other hand does the right thing.

In any event, I'm not sure this should be called LIB_INSTALL_DIR? The standard name for this in most software that uses cmake is CMAKE_INSTALL_LIBDIR. See:

https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html

from munt.

sergm avatar sergm commented on April 28, 2024

See the code on master branch ;)

from munt.

realnc avatar realnc commented on April 28, 2024

Ah, oops. Forgot to check current git master. I use munt as a git submodule and have it pointed to the latest libmt32emu tag.

This bug report is actually invalid then, because on current git master, -DLIB_INSTALL_DIR=lib works just fine anyway, as does -DCMAKE_INSTALL_LIBDIR=lib.

Sorry for the noise :-P

from munt.

sergm avatar sergm commented on April 28, 2024

No problem

from munt.

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.