diff options
| author | Manolo Gouy <Manolo> | 2016-06-14 05:19:32 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-06-14 05:19:32 +0000 |
| commit | 68cf00ee09432b8d9515a4ac0eb269c26d8661df (patch) | |
| tree | d80a6e6ef4210bbce89f431de55f84de4907fff8 /CMake/resources.cmake | |
| parent | 1f81808b103f735dd56bfa0a0b87fd442014250f (diff) | |
THE best way to test for availability of dlsym().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11779 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'CMake/resources.cmake')
| -rw-r--r-- | CMake/resources.cmake | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/CMake/resources.cmake b/CMake/resources.cmake index eb2e1a4b3..8af7ca2cd 100644 --- a/CMake/resources.cmake +++ b/CMake/resources.cmake @@ -106,14 +106,9 @@ if(HAVE_DLFCN_H) set(HAVE_DLFCN_H 1) endif(HAVE_DLFCN_H) -if(LIB_dl) - set(CMAKE_REQUIRED_LIBRARIES ${LIB_dl}) - CHECK_FUNCTION_EXISTS(dlsym HAVE_DLSYM) - set(CMAKE_REQUIRED_LIBRARIES) -else() -# test also for systems where dlsym() is not in libdl (e.g., NetBSD, FreeBSD) - CHECK_FUNCTION_EXISTS(dlsym HAVE_DLSYM) -endif(LIB_dl) +set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_DL_LIBS}) +CHECK_FUNCTION_EXISTS(dlsym HAVE_DLSYM) +set(CMAKE_REQUIRED_LIBRARIES) CHECK_FUNCTION_EXISTS(localeconv HAVE_LOCALECONV) |
