Skip to content

Commit

Permalink
update structure of interface part
Browse files Browse the repository at this point in the history
  • Loading branch information
TimSiebert1 committed Oct 10, 2024
1 parent f8a5ebb commit 009bf71
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ project(adol-c
DESCRIPTION "A Package for Automatic Differentiation of Algorithms Written in C/C++"
HOMEPAGE_URL "https://github.com/coin-or/ADOL-C")

set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")

add_library(adolc SHARED)
add_library(adolc::adolc ALIAS adolc)

Expand Down Expand Up @@ -50,9 +50,13 @@ set(USE_BOOST_POOL "#undef USE_BOOST_POOL")

add_subdirectory(ADOL-C)

option(BUILD_INTERFACE OFF)

# include the c interface of adolc
# ----------------------------------------------------------------
option(BUILD_INTERFACE OFF)
if(BUILD_INTERFACE)
# set rpath for execution to the install location of adolc
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
add_subdirectory(ADOL-C/c_interface)
endif()

Expand Down

0 comments on commit 009bf71

Please sign in to comment.