diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-06-28 16:32:06 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-06-28 16:32:06 +0400 |
commit | c8c743b60947ca4a5ba85d66b2abccf60c504a53 (patch) | |
tree | 91b671281d032fe8a14827356c2d97e4cc25278b /build_files | |
parent | 57b69abe0d3263c4f03d453d896ee9527c75d673 (diff) |
code cleanup: compile with clang and quiet some warnings.
Diffstat (limited to 'build_files')
-rw-r--r-- | build_files/cmake/macros.cmake | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/build_files/cmake/macros.cmake b/build_files/cmake/macros.cmake index 61a89b568ad..3608f41e369 100644 --- a/build_files/cmake/macros.cmake +++ b/build_files/cmake/macros.cmake @@ -236,8 +236,7 @@ macro(setup_liblinks ${OPENGL_glu_LIBRARY} ${PNG_LIBRARIES} ${ZLIB_LIBRARIES} - ${FREETYPE_LIBRARY} - ${LAPACK_LIBRARIES}) + ${FREETYPE_LIBRARY}) # since we are using the local libs for python when compiling msvc projects, we need to add _d when compiling debug versions if(WITH_PYTHON) # AND NOT WITH_PYTHON_MODULE # WIN32 needs @@ -346,7 +345,9 @@ macro(setup_liblinks if(WITH_INPUT_NDOF) target_link_libraries(${target} ${NDOF_LIBRARIES}) endif() - + if(WITH_MOD_CLOTH_ELTOPO) + target_link_libraries(${target} ${LAPACK_LIBRARIES}) + endif() if(WIN32 AND NOT UNIX) target_link_libraries(${target} ${PTHREADS_LIBRARIES}) endif() @@ -452,6 +453,12 @@ macro(remove_strict_flags) add_cc_flag("${CC_REMOVE_STRICT_FLAGS}") endif() + if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") + remove_cc_flag("-Wunused-parameter") + remove_cc_flag("-Wunused-variable") + remove_cc_flag("-Werror") + endif() + if(MSVC) # TODO endif() |