summaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
Diffstat (limited to 'CMake')
-rw-r--r--CMake/macros.cmake5
-rw-r--r--CMake/options.cmake2
2 files changed, 6 insertions, 1 deletions
diff --git a/CMake/macros.cmake b/CMake/macros.cmake
index 56ab6ab69..0ab8c8742 100644
--- a/CMake/macros.cmake
+++ b/CMake/macros.cmake
@@ -168,6 +168,11 @@ macro(CREATE_EXAMPLE NAME SOURCES LIBRARIES)
target_link_libraries(${tname} ${X11_Xrender_LIB})
endif(HAVE_XRENDER)
+ if (OPTION_APPLE_SDL)
+ target_link_libraries(${tname} ${SDL2_LIBRARY})
+ endif(OPTION_APPLE_SDL)
+
+
endmacro(CREATE_EXAMPLE NAME SOURCES LIBRARIES)
#######################################################################
diff --git a/CMake/options.cmake b/CMake/options.cmake
index cf86c6f2b..c69c9a38e 100644
--- a/CMake/options.cmake
+++ b/CMake/options.cmake
@@ -69,7 +69,7 @@ if (OPTION_APPLE_SDL)
if (SDL2_FOUND)
set(USE_SDL 1)
set(FL_PORTING 1)
- list(APPEND FLTK_LDLIBS SDL2_LIBRARIES)
+ list(APPEND FLTK_LDLIBS SDL2_LIBRARY)
endif(SDL2_FOUND)
endif(OPTION_APPLE_SDL)