mirror of
https://github.com/TheAlgorithms/C
synced 2025-02-19 23:14:23 +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)
|
add_compile_options(/Za)
|
||||||
endif(MSVC)
|
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(conversions)
|
||||||
add_subdirectory(misc)
|
add_subdirectory(misc)
|
||||||
add_subdirectory(project_euler)
|
add_subdirectory(project_euler)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user