Skip to content

Commit 7c4ce76

Browse files
committed
Fix incorrect libm linking on VS2022 in CMake project
1 parent 711c86e commit 7c4ce76

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

projects/CMake/CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@ target_compile_definitions(raudio PUBLIC
4141
)
4242

4343
# Dependenices
44-
target_link_libraries(raudio
45-
m # math
46-
)
44+
if(NOT MSVC)
45+
target_link_libraries(raudio
46+
m # math
47+
)
48+
endif()
4749

4850
# Audio file support options
4951
if (SUPPORT_FILEFORMAT_WAV)

0 commit comments

Comments
 (0)