소스 검색

[cmake] link m and dl on unix platforms

Andy Li 8 년 전
부모
커밋
99ad305dbd
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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(