aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2016-03-23 02:20:15 -0700
committerTimothy Gu <timothygu99@gmail.com>2016-03-23 02:20:15 -0700
commit00d5cd182732c6bfc431f0e4f38e1b18647ce938 (patch)
tree215030d317a2cd0c0e0c64da96cdd35aff813f9d
parent7cea745e8fd471c649b281b4e7236d83cdd4f413 (diff)
parent604fd008a9566467f47e97c46330a90045da1755 (diff)
downloaddlfcn-win32-00d5cd182732c6bfc431f0e4f38e1b18647ce938.tar.gz
dlfcn-win32-00d5cd182732c6bfc431f0e4f38e1b18647ce938.tar.bz2
dlfcn-win32-00d5cd182732c6bfc431f0e4f38e1b18647ce938.zip
Merge pull request #25 from xantares/patch-1
Removed wine detection
-rw-r--r--CMakeLists.txt6
1 files changed, 1 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1dbec48..cf8c60a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -7,7 +7,6 @@ endif ()
7project (dlfcn C) 7project (dlfcn C)
8 8
9option(BUILD_SHARED_LIBS "shared/static libs" ON) 9option(BUILD_SHARED_LIBS "shared/static libs" ON)
10option(USE_WINE "use wine for test" ON)
11option(BUILD_TESTS "tests?" OFF) 10option(BUILD_TESTS "tests?" OFF)
12 11
13set(headers dlfcn.h) 12set(headers dlfcn.h)
@@ -28,12 +27,9 @@ install (FILES ${headers} DESTINATION include)
28 27
29if (BUILD_TESTS) 28if (BUILD_TESTS)
30 enable_testing() 29 enable_testing()
31 if (USE_WINE)
32 find_program(WINE_EXECUTABLE NAMES wine)
33 endif ()
34 add_library(testdll SHARED testdll.c) 30 add_library(testdll SHARED testdll.c)
35 set_target_properties(testdll PROPERTIES PREFIX "") 31 set_target_properties(testdll PROPERTIES PREFIX "")
36 add_executable(t_dlfcn test.c) 32 add_executable(t_dlfcn test.c)
37 target_link_libraries(t_dlfcn dl) 33 target_link_libraries(t_dlfcn dl)
38 add_test ( NAME t_dlfcn COMMAND ${WINE_EXECUTABLE} t_dlfcn${CMAKE_EXECUTABLE_SUFFIX} ) 34 add_test (NAME t_dlfcn COMMAND t_dlfcn)
39endif () 35endif ()