Skip to content

Commit

Permalink
set the INSTALL_NAME_DIR for psmoveapi and psmoveapi_tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
birarda committed Apr 21, 2015
1 parent 1e09f54 commit bfd6f99
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,15 @@ if(NOT PSMOVEAPI_LIB_DEST)
endif()
endif()

# set the INSTALL_NAME_DIR (currently used on OS X) for present targets
if (TARGET psmoveapi)
set_target_properties(psmoveapi PROPERTIES INSTALL_NAME_DIR ${CMAKE_INSTALL_PREFIX}/${PSMOVEAPI_LIB_DEST})
endif ()

if (TARGET psmoveapi_tracker)
set_target_properties(psmoveapi_tracker PROPERTIES INSTALL_NAME_DIR ${CMAKE_INSTALL_PREFIX}/${PSMOVEAPI_LIB_DEST})
endif ()

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/contrib/psmoveapi.pc.in
${CMAKE_CURRENT_BINARY_DIR}/psmoveapi.pc
@ONLY)
Expand Down

0 comments on commit bfd6f99

Please sign in to comment.