Skip to content

Commit

Permalink
Fix regtest compillation for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
trufanov-nok committed Jan 8, 2024
1 parent 86771eb commit 97f28f3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ta-lib-rt/c/src/tools/ta_regtest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 97f28f3

Please sign in to comment.