diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2017-04-07 11:44:13 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2017-04-07 11:44:13 +0300 |
commit | 102966b12ef46724af4bd9880e3701512b570af8 (patch) | |
tree | b2604a70b32d7d59be6d24f833879c1278a958c7 | |
parent | a0799ce33680ff9eea6afeb41b14a66db14f7a20 (diff) |
Fix building alembic gtest with buildinfo...
-rw-r--r-- | tests/gtests/alembic/CMakeLists.txt | 10 |
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) |