Fixed build failure to a missing math library linked with BUILD_ENGINE_C=1 and clang webgl
authorGianfranco Costamagna <costamagnagianfranco@yahoo.it>
Thu, 09 Jan 2014 19:10:12 +0100
branchwebgl
changeset 9984 84835d0ceb64
parent 9982 24ea101fdc7f
child 9986 72f2bc996934
child 10015 4feced261c68
Fixed build failure to a missing math library linked with BUILD_ENGINE_C=1 and clang
QTfrontend/CMakeLists.txt
project_files/hwc/CMakeLists.txt
--- a/QTfrontend/CMakeLists.txt	Thu Jan 09 23:54:40 2014 +0400
+++ b/QTfrontend/CMakeLists.txt	Thu Jan 09 19:10:12 2014 +0100
@@ -216,7 +216,7 @@
 endif()
 
 if(CMAKE_CXX_COMPILER MATCHES "clang*")
-    list(APPEND HW_LINK_LIBS stdc++)
+    list(APPEND HW_LINK_LIBS stdc++ m)
 endif()
 
 target_link_libraries(hedgewars ${HW_LINK_LIBS})
--- a/project_files/hwc/CMakeLists.txt	Thu Jan 09 23:54:40 2014 +0400
+++ b/project_files/hwc/CMakeLists.txt	Thu Jan 09 19:10:12 2014 +0100
@@ -73,6 +73,7 @@
                                 ${GLEW_LIBRARY}
                                 physfs
                                 physlayer
+                                m
                                 #TODO: add other libraries
                             )
 if(APPLE)