From 94c56e527a2e09df73428c22a7823aad3fd4c24a Mon Sep 17 00:00:00 2001 From: Xiphoseer Date: Fri, 5 Jan 2024 21:17:44 +0100 Subject: [PATCH] fix: macos? --- tests/dCommonTests/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/dCommonTests/CMakeLists.txt b/tests/dCommonTests/CMakeLists.txt index 01c72505..db91d7ab 100644 --- a/tests/dCommonTests/CMakeLists.txt +++ b/tests/dCommonTests/CMakeLists.txt @@ -19,6 +19,15 @@ list(APPEND DCOMMONTEST_SOURCES ${DENUMS_TESTS}) add_executable(dCommonTests ${DCOMMONTEST_SOURCES}) add_dependencies(dCommonTests conncpp_tests) +if(APPLE) +add_custom_command(TARGET dCommonTests POST_BUILD + COMMAND otool ARGS -L dCommonTests + WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}) +add_custom_command(TARGET dCommonTests POST_BUILD + COMMAND ls + WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}) +endif() + # Link needed libraries target_link_libraries(dCommonTests ${COMMON_LIBRARIES} GTest::gtest_main)