Fix building alembic gtest with buildinfo...
authorBastien Montagne <montagne29@wanadoo.fr>
Fri, 7 Apr 2017 08:44:13 +0000 (10:44 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Fri, 7 Apr 2017 08:44:13 +0000 (10:44 +0200)
tests/gtests/alembic/CMakeLists.txt

index d4a1e1f29ad3da40656ffa9d2e78416259e0e405..c1480910d42c9671625c9c442076d543e091c0b7 100644 (file)
@@ -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)