aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2015-03-15 16:35:22 -0700
committerTimothy Gu <timothygu99@gmail.com>2015-03-15 17:00:40 -0700
commit5ea707adea4146a64c38106a9bad11b01f74f0ef (patch)
tree40d22b482595a05fa25653407bafb2da2be3ed7d /CMakeLists.txt
parentc421b7010d915a36bfc90c4f0462095ea840bb7a (diff)
downloaddlfcn-win32-5ea707adea4146a64c38106a9bad11b01f74f0ef.tar.gz
dlfcn-win32-5ea707adea4146a64c38106a9bad11b01f74f0ef.tar.bz2
dlfcn-win32-5ea707adea4146a64c38106a9bad11b01f74f0ef.zip
Define SHARED when building shared library
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6dcf8a3..972ffb4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -13,6 +13,10 @@ option(BUILD_TESTS "tests?" OFF)
13set(headers dlfcn.h) 13set(headers dlfcn.h)
14set(sources dlfcn.c) 14set(sources dlfcn.c)
15 15
16if (BUILD_SHARED_LIBS)
17 add_definitions(-DSHARED)
18endif (BUILD_SHARED_LIBS)
19
16add_library(dl ${sources}) 20add_library(dl ${sources})
17 21
18install (TARGETS dl RUNTIME DESTINATION bin 22install (TARGETS dl RUNTIME DESTINATION bin