[Piglit] [PATCH 10/12] HACK: cmake: link in waffle's third_party static libraries

Emil Velikov emil.l.velikov at gmail.com
Tue Aug 12 10:18:50 PDT 2014


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.velikov at 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
+	# 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
-- 
2.0.2



More information about the Piglit mailing list