Skip to content

Commit

Permalink
tests: Fix missing math library on Tru64 with Compaq compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
saprykin committed Apr 27, 2024
1 parent 5b3ef8d commit b5c75b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ macro (plibsys_add_test_executable TEST_NAME SRC_FILE)
target_link_libraries (${TEST_NAME} plibsys)
set_target_properties (${TEST_NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${OUTPUT_DIR})

# QNX requires libm for sqrt() and friends
if (PLIBSYS_TESTS_TARGET_OS STREQUAL qnx)
# QNX and Tru64 require libm for sqrt() and friends
if ((PLIBSYS_TESTS_TARGET_OS STREQUAL qnx) OR (PLIBSYS_TESTS_TARGET_OS STREQUAL tru64))
target_link_libraries (${TEST_NAME} m)
endif()

Expand Down

0 comments on commit b5c75b9

Please sign in to comment.