Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/paths.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonan Collobert <ronan@collobert.com>2014-02-15 22:24:41 +0400
committerRonan Collobert <ronan@collobert.com>2014-02-15 22:24:41 +0400
commitc4e29565cd30fae05840f0e1375be6bd760efc9b (patch)
tree2c6710d975be18c08c8e7fda167929a6e03c77be /CMakeLists.txt
parentbefb73a2627ba126b3daa7540afae25c9dd12516 (diff)
fix custom require (with dlopen(RTLD_GLOBAL))
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ce5c278..e4d2a8d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,6 +6,7 @@ LINK_DIRECTORIES("${LUA_LIBDIR}")
INCLUDE(CheckIncludeFiles)
INCLUDE(CheckFunctionExists)
+INCLUDE(CheckLibraryExists)
IF (UNIX OR NOT WIN32)
CHECK_INCLUDE_FILES(fcntl.h HAVE_FCNTL_H)
@@ -18,6 +19,7 @@ IF (UNIX OR NOT WIN32)
CHECK_INCLUDE_FILES(sys/dir.h HAVE_SYS_DIR_H)
CHECK_INCLUDE_FILES(ndir.h HAVE_NDIR_H)
CHECK_FUNCTION_EXISTS(getcwd HAVE_GETCWD)
+ CHECK_LIBRARY_EXISTS(dl dlopen "" HAVE_DLOPEN)
ENDIF (UNIX OR NOT WIN32)
CONFIGURE_FILE("paths.h.in" "${CMAKE_CURRENT_BINARY_DIR}/paths.h")