Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake issue (@rpath) on osx #15

Closed
antigraviton opened this issue Jan 3, 2015 · 1 comment
Closed

CMake issue (@rpath) on osx #15

antigraviton opened this issue Jan 3, 2015 · 1 comment

Comments

@antigraviton
Copy link

Guys,

As you can see in https://groups.google.com/forum/#!topic/gqrx/Y1uUZSJ5hJ0, Michael Dickens helped me with an issue in libairspy, whilst trying to install gqrx through macports.

He suggested:
Before building libairspy, modify host/libairspy/CMakeLists.txt and add the following near the beginning:


if(APPLE)

    set(GR_LIBRARY_DIR "lib") 

    if(NOT CMAKE_INSTALL_NAME_DIR) 

        set(CMAKE_INSTALL_NAME_DIR 

            ${CMAKE_INSTALL_PREFIX}/${GR_LIBRARY_DIR} CACHE 

            PATH "Library Install Name Destination Directory" FORCE) 

    endif(NOT CMAKE_INSTALL_NAME_DIR) 

    if(NOT CMAKE_INSTALL_RPATH) 

        set(CMAKE_INSTALL_RPATH 

            ${CMAKE_INSTALL_PREFIX}/${GR_LIBRARY_DIR} CACHE 

            PATH "Library Install RPath" FORCE) 

    endif(NOT CMAKE_INSTALL_RPATH) 

    if(NOT CMAKE_BUILD_WITH_INSTALL_RPATH) 

        set(CMAKE_BUILD_WITH_INSTALL_RPATH ON CACHE 

            BOOL "Do Build Using Library Install RPath" FORCE) 

    endif(NOT CMAKE_BUILD_WITH_INSTALL_RPATH)

endif(APPLE)

Works for me...

Kind regards and thanks for the good work.

Derk

bvernoux added a commit that referenced this issue Jan 6, 2015
@bvernoux
Copy link
Member

bvernoux commented Jan 6, 2015

Thanks for the patch I have fixed it in trunk any feedback is welcome from users with macos ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants