From ede381c00540831d965cae5ac8bcd31c2e34fc92 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Tue, 12 Sep 2023 23:18:46 +0200 Subject: Fix Visual Studio shared library build Todo: fluid-shared can't (yet) be built agains the shared fltk lib because of some linker errors. Needs investigation. Note: fluid-shared is basically a test program to demonstrate linking against the shared FLTK libs but doesn't work yet using VS (MSVC). This is no problem for the functionality. --- test/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 6fb3b5105..1687ebfb8 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -169,7 +169,11 @@ SET (UNITTEST_SRCS ) if (OPENGL_FOUND) set (UNITTEST_LIBS fltk_gl fltk ${OPENGL_LIBRARIES}) - set (UNITTEST_LIBS_SHARED fltk_gl_SHARED fltk_SHARED ${OPENGL_LIBRARIES}) + if (MSVC) + set (UNITTEST_LIBS_SHARED fltk_SHARED ${OPENGL_LIBRARIES}) + else () + set (UNITTEST_LIBS_SHARED fltk_gl_SHARED fltk_SHARED ${OPENGL_LIBRARIES}) + endif () else () set (UNITTEST_LIBS fltk) set (UNITTEST_LIBS_SHARED fltk_SHARED) -- cgit v1.2.3