Skip to content

Commit 6a185ad

Browse files
author
Branan Purvine-Riley
authored
Merge pull request #68 from Magisus/maint/rt-lib
(maint) Add link to rt library on Linux
2 parents 71c8cb7 + bcc6a9e commit 6a185ad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/tests/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ set(TEST_CASES
1919
)
2020

2121
add_executable(lib${PROJECT_NAME}_test $<TARGET_OBJECTS:libprojectsrc> ${TEST_CASES} main.cc)
22+
23+
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
24+
target_link_libraries(lib${PROJECT_NAME}_test rt)
25+
endif()
26+
2227
target_link_libraries(lib${PROJECT_NAME}_test
2328
${Boost_LIBRARIES}
2429
${LEATHERMAN_LIBRARIES}

0 commit comments

Comments
 (0)