mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-14 01:37:56 +08:00
Problem: LD search path warnings if using Clang
Solution: PR #1906 did not solve this problem properly; subsequent Travis CI indicated that the issue happens with Clang/LLVM, so make sure to fix the issue by detecting if Cmake CMake is using Clang for building the tests.
This commit is contained in:
parent
23e42526eb
commit
7f0e380c05
@ -137,7 +137,7 @@ foreach(test ${tests})
|
||||
SET_TARGET_PROPERTIES( ${test} PROPERTIES LINK_FLAGS "/LIBPATH:../bin/Win32/Debug/v120/dynamic" )
|
||||
else()
|
||||
# per-test directories not generated on OS X / Darwin
|
||||
if (NOT APPLE)
|
||||
if (NOT ${CMAKE_CXX_COMPILER_ID} MATCHES "Clang.*")
|
||||
link_directories(${test} PRIVATE "${CMAKE_SOURCE_DIR}/../lib")
|
||||
endif()
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user