From 8f3b3a4752979e7804be648ed7e6f5e5596c7506 Mon Sep 17 00:00:00 2001 From: Nikhil Bhavikatti Date: Wed, 21 Sep 2022 12:26:59 +0530 Subject: [PATCH] Updates in CMakeLists for windows build --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 813b9d3..a8be1d0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -158,7 +158,12 @@ list(APPEND XAACDEC_SRCS add_executable(xaacdec ${XAACDEC_SRCS}) -target_link_libraries(xaacdec libxaacdec m) +if(MSVC) + target_link_libraries(xaacdec libxaacdec) +else() + target_link_libraries(xaacdec libxaacdec m) +endif() + set_target_properties( xaacdec PROPERTIES