diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-08-31 16:59:03 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-08-31 16:59:03 +0200 |
| commit | 1da9438a1c29429c231d90167f996b3f840eb3e2 (patch) | |
| tree | 7586514f5180d6ba5f9e652d6245565d38c6e02c /CMake/options.cmake | |
| parent | dd819a118cfaa889bec6563b6a8e1e969b91f7ee (diff) | |
CMake: replace check_function_exists() with check_symbol_exists() (#1053)
Diffstat (limited to 'CMake/options.cmake')
| -rw-r--r-- | CMake/options.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMake/options.cmake b/CMake/options.cmake index c6b6ff60d..45dba4cde 100644 --- a/CMake/options.cmake +++ b/CMake/options.cmake @@ -424,7 +424,7 @@ option(FLTK_USE_POLL "use poll if available" OFF) mark_as_advanced(FLTK_USE_POLL) if(FLTK_USE_POLL) - check_function_exists(poll USE_POLL) + check_symbol_exists(poll "poll.h" USE_POLL) endif(FLTK_USE_POLL) ####################################################################### @@ -699,7 +699,7 @@ if(OPENGL_FOUND) # check if function glXGetProcAddressARB exists set(TEMP_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES}) set(CMAKE_REQUIRED_LIBRARIES ${OPENGL_LIBRARIES}) - check_function_exists(glXGetProcAddressARB HAVE_GLXGETPROCADDRESSARB) + check_symbol_exists(glXGetProcAddressARB "glx.h" HAVE_GLXGETPROCADDRESSARB) set(CMAKE_REQUIRED_LIBRARIES ${TEMP_REQUIRED_LIBRARIES}) unset(TEMP_REQUIRED_LIBRARIES) endif(OPENGL_FOUND) |
