Skip to content

Commit

Permalink
tests: Only link omemo tests to QXmppOmemo
Browse files Browse the repository at this point in the history
  • Loading branch information
lnjX committed Mar 15, 2024
1 parent dfcd454 commit a9a844b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ macro(add_simple_test TEST_NAME)
add_executable(tst_${TEST_NAME} ${TEST_NAME}/tst_${TEST_NAME}.cpp ${ARGN})
add_test(tst_${TEST_NAME} tst_${TEST_NAME})
target_link_libraries(tst_${TEST_NAME} Qt${QT_VERSION_MAJOR}::Test ${QXMPP_TARGET})
if(BUILD_OMEMO)
if(${TEST_NAME} MATCHES "^qxmppomemo")
target_link_libraries(tst_${TEST_NAME} ${QXMPPOMEMO_TARGET})
endif()
endmacro()
Expand Down

0 comments on commit a9a844b

Please sign in to comment.