diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2019-05-06 21:47:33 +0200 |
---|---|---|
committer | Pali Rohár <pali.rohar@gmail.com> | 2019-05-06 21:47:33 +0200 |
commit | f3da31d7a3e4b300f325624bf4e424c3bbcd521b (patch) | |
tree | cdd5423fa05e56af5ea604edb8334a6692383365 /CMakeLists.txt | |
parent | 84295c9afc0b42a61cf687d54c3bd5e286fd5176 (diff) | |
download | dlfcn-win32-f3da31d7a3e4b300f325624bf4e424c3bbcd521b.tar.gz dlfcn-win32-f3da31d7a3e4b300f325624bf4e424c3bbcd521b.tar.bz2 dlfcn-win32-f3da31d7a3e4b300f325624bf4e424c3bbcd521b.zip |
Load Psapi.dll at runtime, this avoids linking caveat
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 07addbb..e44343d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -17,7 +17,6 @@ if (BUILD_SHARED_LIBS) | |||
17 | endif (BUILD_SHARED_LIBS) | 17 | endif (BUILD_SHARED_LIBS) |
18 | 18 | ||
19 | add_library(dl ${sources}) | 19 | add_library(dl ${sources}) |
20 | target_link_libraries(dl psapi) | ||
21 | 20 | ||
22 | install (TARGETS dl EXPORT dlfcn-win32-targets | 21 | install (TARGETS dl EXPORT dlfcn-win32-targets |
23 | RUNTIME DESTINATION bin | 22 | RUNTIME DESTINATION bin |