Giter Club home page Giter Club logo

Comments (6)

calcmogul avatar calcmogul commented on July 29, 2024

Looks like it's already listed: https://github.com/SleipnirGroup/TrajoptLib/blob/main/cmake/modules/FetchCasADi.cmake#L68-L69

      message(STATUS "Building for Linux x64")
      set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_RPATH};$ORIGIN/../lib;$ORIGIN")

from choreo.

calcmogul avatar calcmogul commented on July 29, 2024

I think it's from the RPATH settings in https://github.com/SleipnirGroup/TrajoptLib/blob/main/CMakeLists.txt overriding instead of appending to CMAKE_INSTALL_RPATH.

from choreo.

calcmogul avatar calcmogul commented on July 29, 2024

Also, why is CMAKE_INSTALL_RPATH set twice with the same thing?

from choreo.

calcmogul avatar calcmogul commented on July 29, 2024

See if this works?

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 31bd2ca..975df5f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,17 +18,15 @@ set(CMAKE_SKIP_BUILD_RPATH FALSE)
 # installing)
 set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
 
-set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)
-
-# add the automatically determined parts of the RPATH
-# which point to directories outside the build tree to the install RPATH
+# Add the automatically determined parts of the RPATH which point to directories
+# outside the build tree to the install RPATH
 set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
 
-# the RPATH to be used when installing, but only if it's not a system directory
+# The RPATH to be used when installing, but only if it's not a system directory
 list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}/lib" isSystemDir)
 if ("${isSystemDir}" STREQUAL "-1")
-  set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
-endif("${isSystemDir}" STREQUAL "-1")
+  set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_RPATH};${CMAKE_INSTALL_PREFIX}/lib")
+endif()
 
 # Set default build type to release with debug info (i.e. release mode
 # optimizations are performed, but debug info still exists).

from choreo.

calcmogul avatar calcmogul commented on July 29, 2024

Should be fixed by SleipnirGroup/TrajoptLib#44

from choreo.

jlbabilino avatar jlbabilino commented on July 29, 2024

This did fix it, thanks Tyler

from choreo.

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.