On 08/12/2014 11:18 AM, Emil Velikov wrote:
For some bizzare reason the MSVC build fails with unresolved symbols
without these two set in. I'm suspecting that something fishy is
happening with waffle and/or cmake + MSVC. Until we have that one
resolved, this helps us get through with the build.

Signed-off-by: Emil Velikov <emil.l.veli...@gmail.com>
---
  tests/util/CMakeLists.txt | 5 +++++
  1 file changed, 5 insertions(+)

diff --git a/tests/util/CMakeLists.txt b/tests/util/CMakeLists.txt
index 35e2215..7ef6989 100644
--- a/tests/util/CMakeLists.txt
+++ b/tests/util/CMakeLists.txt
@@ -82,8 +82,13 @@ if(PIGLIT_USE_WAFFLE)
                )
        endif()

+       # XXX: HACK: THREAD_LIBRARIES and GETOPT_LIBRARIES should not be

"should not be needed"?

+       # yet without them we end up with unresolved symbols.
+       # The two are third_party waffle static libraries.
        list(APPEND UTIL_GL_LIBS
                ${WAFFLE_LIBRARIES}
+               ${THREAD_LIBRARIES}
+               ${GETOPT_LIBRARIES}
        )
  else()
        list(APPEND UTIL_GL_SOURCES


_______________________________________________
Piglit mailing list
Piglit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to