use link_libraries instead

This commit is contained in:
Krishna Vedala 2020-05-29 13:34:37 -04:00
parent f05eb38574
commit e914f5a48f

View File

@ -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)