From 97f28f3f74e96b014ded2b9514213883b90cbbe3 Mon Sep 17 00:00:00 2001 From: Alexander Trufanov Date: Mon, 8 Jan 2024 17:05:01 +0300 Subject: [PATCH] Fix regtest compillation for Windows --- ta-lib-rt/c/src/tools/ta_regtest/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ta-lib-rt/c/src/tools/ta_regtest/CMakeLists.txt b/ta-lib-rt/c/src/tools/ta_regtest/CMakeLists.txt index 44344a2b..8b4c777b 100644 --- a/ta-lib-rt/c/src/tools/ta_regtest/CMakeLists.txt +++ b/ta-lib-rt/c/src/tools/ta_regtest/CMakeLists.txt @@ -39,7 +39,13 @@ SET(ta_regtest_CSOURCES ADD_EXECUTABLE(ta_regtest ${ta_regtest_CSOURCES}) add_dependencies(ta_regtest ta-lib-rt) + +if (WIN32) +target_link_libraries(ta_regtest ta-lib-rt_a) +else() target_link_libraries(ta_regtest ta-lib-rt m) +endif(WIN32) + link_directories(ta_regtest ${ta-lib-rt_BINARY_DIR}/lib) ADD_TEST(NAME "regtest" COMMAND ta_regtest)