mirror of
https://github.com/TheAlgorithms/C
synced 2025-02-16 13:34:20 +03:00
link with math library when using clang and gcc
This commit is contained in:
parent
06b7c9043f
commit
f05eb38574
@ -46,6 +46,12 @@ if(MSVC)
|
||||
add_compile_options(/Za)
|
||||
endif(MSVC)
|
||||
|
||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
add_link_options(-lm)
|
||||
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
add_link_options(-lm)
|
||||
endif()
|
||||
|
||||
add_subdirectory(conversions)
|
||||
add_subdirectory(misc)
|
||||
add_subdirectory(project_euler)
|
||||
|
Loading…
x
Reference in New Issue
Block a user