Skip to content

Commit

Permalink
adjust library path for Xcode
Browse files Browse the repository at this point in the history
  • Loading branch information
kresan committed Aug 28, 2015
1 parent 4c00a38 commit 90b0848
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,13 @@ SET(FAIRROOT_LIBRARY_PROPERTIES ${FAIRROOT_LIBRARY_PROPERTIES}
SUFFIX ".so"
)

string(COMPARE EQUAL "${CMAKE_GENERATOR}" "Xcode" IS_XCODE)
SET(R3BLIBDIR ${CMAKE_BINARY_DIR}/lib)
SET(LD_LIBRARY_PATH ${R3BLIBDIR} ${LD_LIBRARY_PATH})
If(${IS_XCODE})
SET(LD_LIBRARY_PATH ${R3BLIBDIR}/Debug ${R3BLIBDIR} ${LD_LIBRARY_PATH})
Else(${IS_XCODE})
SET(LD_LIBRARY_PATH ${R3BLIBDIR} ${LD_LIBRARY_PATH})
Endif(${IS_XCODE})


Generate_Version_Info()
Expand Down

0 comments on commit 90b0848

Please sign in to comment.