diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2021-01-17 12:51:08 +0100 |
---|---|---|
committer | Ralf Habacker <ralf.habacker@freenet.de> | 2021-01-17 12:51:39 +0100 |
commit | ebd7badd50aeea37a2ca121409e9f68370b62855 (patch) | |
tree | a5e7bd420e4199f2bb98836a2b97f6f0e8e3d97d /CMakeLists.txt | |
parent | 0ea2334d46ca84c1a27bd086700f620a06401f94 (diff) | |
download | dlfcn-win32-ebd7badd50aeea37a2ca121409e9f68370b62855.tar.gz dlfcn-win32-ebd7badd50aeea37a2ca121409e9f68370b62855.tar.bz2 dlfcn-win32-ebd7badd50aeea37a2ca121409e9f68370b62855.zip |
cmake: add support to build test-dladdr on unix like os
This is used to obtain test result references.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2202c93..df53be1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -39,7 +39,9 @@ else() | |||
39 | add_compile_options(-Wall) | 39 | add_compile_options(-Wall) |
40 | endif() | 40 | endif() |
41 | 41 | ||
42 | add_subdirectory(src) | 42 | if(WIN32) |
43 | add_subdirectory(src) | ||
44 | endif() | ||
43 | 45 | ||
44 | if (BUILD_TESTS) | 46 | if (BUILD_TESTS) |
45 | add_subdirectory(tests) | 47 | add_subdirectory(tests) |