Explorar o código

[cmake] link m and dl on unix platforms

Andy Li %!s(int64=8) %!d(string=hai) anos
pai
achega
99ad305dbd
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      CMakeLists.txt

+ 2 - 0
CMakeLists.txt

@@ -98,6 +98,8 @@ target_link_libraries(hl libhl)
 if(WIN32)
 	target_link_libraries(libhl ws2_32 user32)
 	target_link_libraries(hl user32)
+else()
+    target_link_libraries(libhl m dl)
 endif()
 
 find_program(