Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2017-04-07 11:44:13 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2017-04-07 11:44:13 +0300
commit102966b12ef46724af4bd9880e3701512b570af8 (patch)
treeb2604a70b32d7d59be6d24f833879c1278a958c7 /tests/gtests
parenta0799ce33680ff9eea6afeb41b14a66db14f7a20 (diff)
Fix building alembic gtest with buildinfo...
Diffstat (limited to 'tests/gtests')
-rw-r--r--tests/gtests/alembic/CMakeLists.txt10
1 files changed, 9 insertions, 1 deletions
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)