mirror of
https://github.moeyy.xyz/https://github.com/TheAlgorithms/C.git
synced 2023-10-11 15:56:24 +08:00
use link_libraries instead
This commit is contained in:
parent
f05eb38574
commit
e914f5a48f
@ -47,9 +47,9 @@ if(MSVC)
|
||||
endif(MSVC)
|
||||
|
||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
add_link_options(-lm)
|
||||
link_libraries(m)
|
||||
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
add_link_options(-lm)
|
||||
link_libraries((m)
|
||||
endif()
|
||||
|
||||
add_subdirectory(conversions)
|
||||
|
Loading…
Reference in New Issue
Block a user