Explorar el Código

[cmake] link m and dl on unix platforms

Andy Li hace 8 años
padre
commit
99ad305dbd
Se han modificado 1 ficheros con 2 adiciones y 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(