diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-09-12 23:18:46 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-09-12 23:18:46 +0200 |
| commit | ede381c00540831d965cae5ac8bcd31c2e34fc92 (patch) | |
| tree | 5c8b6ba5fcdfba71458e9c82639cd7614b8c177a /test | |
| parent | e44a988c4a0770b7a12193cc023d1a55b5ff89e7 (diff) | |
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.
Diffstat (limited to 'test')
| -rw-r--r-- | test/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
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) |
