diff options
author | Timothy Gu <timothygu99@gmail.com> | 2015-03-15 16:35:22 -0700 |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2015-03-15 17:00:40 -0700 |
commit | 5ea707adea4146a64c38106a9bad11b01f74f0ef (patch) | |
tree | 40d22b482595a05fa25653407bafb2da2be3ed7d /CMakeLists.txt | |
parent | c421b7010d915a36bfc90c4f0462095ea840bb7a (diff) | |
download | dlfcn-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.txt | 4 |
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) | |||
13 | set(headers dlfcn.h) | 13 | set(headers dlfcn.h) |
14 | set(sources dlfcn.c) | 14 | set(sources dlfcn.c) |
15 | 15 | ||
16 | if (BUILD_SHARED_LIBS) | ||
17 | add_definitions(-DSHARED) | ||
18 | endif (BUILD_SHARED_LIBS) | ||
19 | |||
16 | add_library(dl ${sources}) | 20 | add_library(dl ${sources}) |
17 | 21 | ||
18 | install (TARGETS dl RUNTIME DESTINATION bin | 22 | install (TARGETS dl RUNTIME DESTINATION bin |