OSX: more futurework for clang-openmp:
[blender.git] / intern / locale / CMakeLists.txt
index 3599aa6854525281cf9bb5a3e065b63988eb0043..6f3b6a695b686912c8238a07576776d5e86f3057 100644 (file)
@@ -51,5 +51,10 @@ blender_add_lib(bf_intern_locale "${SRC}" "${INC}" "${INC_SYS}")
 set(MSFFMT_SRC
        msgfmt.cc
 )
-
 add_executable(msgfmt ${MSFFMT_SRC})
+
+if(CMAKE_C_COMPILER_ID MATCHES "Clang" AND (CMAKE_C_COMPILER_VERSION VERSION_EQUAL 3.4 OR CMAKE_C_COMPILER_VERSION VERSION_GREATER 3.4))
+       # needed for clang 3.4+
+       target_link_libraries(msgfmt ${PLATFORM_LINKLIBS})
+endif()
+