mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-14 01:37:56 +08:00
Fix running tests from cmake on linux.
This commit is contained in:
parent
e1b2b649fb
commit
70a1fbee7a
@ -620,7 +620,11 @@ foreach(test ${tests})
|
||||
if(RT_LIBRARY)
|
||||
target_link_libraries(${test} ${RT_LIBRARY})
|
||||
endif()
|
||||
add_test(NAME ${test} WORKING_DIRECTORY ${LIBRARY_OUTPUT_PATH}/Debug COMMAND ${test})
|
||||
if(WIN32)
|
||||
add_test(NAME ${test} WORKING_DIRECTORY ${LIBRARY_OUTPUT_PATH}/Debug COMMAND ${test})
|
||||
else()
|
||||
add_test(NAME ${test} COMMAND ${test})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user