shithub: dumb

Download patch

ref: 2924de99bf617df3c7f0518ead6b48d0abc3d215
parent: 022c14c3cf3d0cd0045b60f5108b6fdb5f4c8b5b
parent: 5a238e45005d9c5c51a0e9f27bf52303f8e6a674
author: Chris Moeller <kode54@gmail.com>
date: Sat May 30 13:04:20 EDT 2015

Merge pull request #12 from winterheart/cmake-fixes

Add support to multilib linux enviroment and link to -lm

--- a/dumb/cmake/CMakeLists.txt
+++ b/dumb/cmake/CMakeLists.txt
@@ -110,9 +110,11 @@
     set_target_properties(dumb PROPERTIES INSTALL_NAME_DIR ${CMAKE_INSTALL_PREFIX}/lib)
 ENDIF(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
 
+target_link_libraries(dumb m)
+
 INSTALL(FILES ${INSTALL_HEADERS} DESTINATION include/)
 INSTALL(TARGETS dumb
     RUNTIME DESTINATION bin
-    LIBRARY DESTINATION lib
-    ARCHIVE DESTINATION lib
+    LIBRARY DESTINATION lib${LIB_SUFFIX}
+    ARCHIVE DESTINATION lib${LIB_SUFFIX}
 )