Warning, /sdk/codevis/thirdparty/soci/cmake/modules/FindDL.cmake is written in an unsupported language. File is not indexed.
0001 if(DL_INCLUDE_DIR) 0002 set(DL_FIND_QUIETLY TRUE) 0003 endif() 0004 0005 find_path(DL_INCLUDE_DIR dlfcn.h) 0006 find_library(DL_LIBRARY NAMES dl) 0007 0008 include(FindPackageHandleStandardArgs) 0009 find_package_handle_standard_args(DL DEFAULT_MSG DL_LIBRARY DL_INCLUDE_DIR) 0010 0011 if(NOT DL_FOUND) 0012 # if dlopen can be found without linking in dl then, 0013 # dlopen is part of libc, so don't need to link extra libs. 0014 include(CheckFunctionExists) 0015 check_function_exists(dlopen DL_FOUND) 0016 set(DL_LIBRARY "") 0017 endif() 0018 0019 set(DL_LIBRARIES ${DL_LIBRARY}) 0020 0021 mark_as_advanced(DL_LIBRARY DL_INCLUDE_DIR)