# HG changeset patch # User Gianfranco Costamagna # Date 1389291012 -3600 # Node ID 84835d0ceb649141cdf762b03946587bfe6442ea # Parent 24ea101fdc7fda414800799a8d86f86ae703e45b Fixed build failure to a missing math library linked with BUILD_ENGINE_C=1 and clang diff -r 24ea101fdc7f -r 84835d0ceb64 QTfrontend/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}) diff -r 24ea101fdc7f -r 84835d0ceb64 project_files/hwc/CMakeLists.txt --- 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)