Fixed build failure to a missing math library linked with BUILD_ENGINE_C=1 and clang
--- 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)