Skip to content

Commit

Permalink
Merge pull request #1906 from hitstergtd/hitstergtd-cmake-tests-os-fix
Browse files Browse the repository at this point in the history
Problem: Linker search path warnings on OS X
  • Loading branch information
bluca committed Apr 19, 2016
2 parents 136870f + 846b2ba commit 317499e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ foreach(test ${tests})
# it will only link correctly for DEBUG builds in Windows (I don't know how to specify the target and target library in CMake)
SET_TARGET_PROPERTIES( ${test} PROPERTIES LINK_FLAGS "/LIBPATH:../bin/Win32/Debug/v120/dynamic" )
else()
link_directories(${test} PRIVATE "${CMAKE_SOURCE_DIR}/../lib")
# per-test directories not generated on OS X / Darwin
if (NOT APPLE)
link_directories(${test} PRIVATE "${CMAKE_SOURCE_DIR}/../lib")
endif()
endif()

if(RT_LIBRARY)
Expand Down

0 comments on commit 317499e

Please sign in to comment.