diff options
author | Jens Verwiebe <info@jensverwiebe.de> | 2014-02-18 20:18:25 +0400 |
---|---|---|
committer | Jens Verwiebe <info@jensverwiebe.de> | 2014-02-18 20:18:35 +0400 |
commit | c987bcc416a340d1e109979b59fc80683279d41f (patch) | |
tree | 35f556914a5a4883adc2cb9ac589ffdb764fdd49 /intern/locale | |
parent | 7aa86ec243f92cee6f5de040f989fc7779f0e5a1 (diff) |
OSX: more futurework for clang-openmp:
- moved assumed location of omp lib to blender libs
- prepared libiomp5 to link out of the box with cmake
- changed according in scons
- introduced a local var C_VENDOR, cause Apple clang 3.4 may not include omp support yet
- added a linklibs for msgfmt ( may not be needed for other than OSX )
Diffstat (limited to 'intern/locale')
-rw-r--r-- | intern/locale/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/intern/locale/CMakeLists.txt b/intern/locale/CMakeLists.txt index 3599aa68545..6f3b6a695b6 100644 --- a/intern/locale/CMakeLists.txt +++ b/intern/locale/CMakeLists.txt @@ -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() + |