Commit 317499ed authored by Luca Boccassi's avatar Luca Boccassi

Merge pull request #1906 from hitstergtd/hitstergtd-cmake-tests-os-fix

Problem: Linker search path warnings on OS X
parents 136870f2 846b2ba1
...@@ -131,7 +131,10 @@ foreach(test ${tests}) ...@@ -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) # 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" ) SET_TARGET_PROPERTIES( ${test} PROPERTIES LINK_FLAGS "/LIBPATH:../bin/Win32/Debug/v120/dynamic" )
else() 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() endif()
if(RT_LIBRARY) if(RT_LIBRARY)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment