aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxantares <xantares09@hotmail.com>2016-03-23 09:43:39 +0100
committerxantares <xantares09@hotmail.com>2016-03-23 09:43:39 +0100
commit604fd008a9566467f47e97c46330a90045da1755 (patch)
tree215030d317a2cd0c0e0c64da96cdd35aff813f9d
parent7cea745e8fd471c649b281b4e7236d83cdd4f413 (diff)
downloaddlfcn-win32-604fd008a9566467f47e97c46330a90045da1755.tar.gz
dlfcn-win32-604fd008a9566467f47e97c46330a90045da1755.tar.bz2
dlfcn-win32-604fd008a9566467f47e97c46330a90045da1755.zip
Removed wine detection
It can be set canonically by using CMAKE_CROSSCOMPILIING_EMULATOR variable
-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 ()