[Bf-blender-cvs] [102966b12ef] master: Fix building alembic gtest with buildinfo...
Bastien Montagne
noreply at git.blender.org
Fri Apr 7 10:44:42 CEST 2017
Commit: 102966b12ef46724af4bd9880e3701512b570af8
Author: Bastien Montagne
Date: Fri Apr 7 10:44:13 2017 +0200
Branches: master
https://developer.blender.org/rB102966b12ef46724af4bd9880e3701512b570af8
Fix building alembic gtest with buildinfo...
===================================================================
M tests/gtests/alembic/CMakeLists.txt
===================================================================
diff --git a/tests/gtests/alembic/CMakeLists.txt b/tests/gtests/alembic/CMakeLists.txt
index d4a1e1f29ad..c1480910d42 100644
--- a/tests/gtests/alembic/CMakeLists.txt
+++ b/tests/gtests/alembic/CMakeLists.txt
@@ -37,7 +37,15 @@ include_directories(${INC})
setup_libdirs()
get_property(BLENDER_SORTED_LIBS GLOBAL PROPERTY BLENDER_SORTED_LIBS_PROP)
+if(WITH_BUILDINFO)
+ set(_buildinfo_src "$<TARGET_OBJECTS:buildinfoobj>")
+else()
+ set(_buildinfo_src "")
+endif()
+
# For motivation on doubling BLENDER_SORTED_LIBS, see ../bmesh/CMakeLists.txt
-BLENDER_SRC_GTEST(abc_matrix "abc_matrix_test.cc" "${BLENDER_SORTED_LIBS};${BLENDER_SORTED_LIBS}")
+BLENDER_SRC_GTEST(abc_matrix "abc_matrix_test.cc;${_buildinfo_src}" "${BLENDER_SORTED_LIBS};${BLENDER_SORTED_LIBS}")
+
+unset(_buildinfo_src)
setup_liblinks(abc_matrix_test)
More information about the Bf-blender-cvs
mailing list