commit 5e77b9254c2b3e54bd8092b32879ed876aae2a85
parent 14528f159dbec9b8c5c114dd961569c2ef34b31d
Author: d.levin256@gmail.com <d.levin256@gmail.com>
Date: Sun, 21 Oct 2018 18:00:17 +0300
Fix building in MSYS2
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
@@ -43,7 +43,10 @@ add_executable(dft_test dft_test.cpp ${KFR_SRC} ${TEST_SRC})
if (MPFR_FOUND)
include_directories(${MPFR_INCLUDE_DIR})
add_executable(transcendental_test transcendental_test.cpp ${KFR_SRC} ${TEST_SRC})
- target_link_libraries(transcendental_test ${MPFR_LIBRARIES} libgmp)
+ target_link_libraries(transcendental_test ${MPFR_LIBRARIES})
+ if (WIN32)
+ target_link_libraries(transcendental_test gmp) # for MSYS
+ endif()
endif ()
add_executable(dsp_test dsp_test.cpp ${KFR_SRC} ${TEST_SRC})
add_executable(empty_test empty_test.cpp ${KFR_SRC} ${TEST_SRC})