diff options
author | xantares <xantares09@hotmail.com> | 2016-03-23 09:43:39 +0100 |
---|---|---|
committer | xantares <xantares09@hotmail.com> | 2016-03-23 09:43:39 +0100 |
commit | 604fd008a9566467f47e97c46330a90045da1755 (patch) | |
tree | 215030d317a2cd0c0e0c64da96cdd35aff813f9d | |
parent | 7cea745e8fd471c649b281b4e7236d83cdd4f413 (diff) | |
download | dlfcn-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.txt | 6 |
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 () | |||
7 | project (dlfcn C) | 7 | project (dlfcn C) |
8 | 8 | ||
9 | option(BUILD_SHARED_LIBS "shared/static libs" ON) | 9 | option(BUILD_SHARED_LIBS "shared/static libs" ON) |
10 | option(USE_WINE "use wine for test" ON) | ||
11 | option(BUILD_TESTS "tests?" OFF) | 10 | option(BUILD_TESTS "tests?" OFF) |
12 | 11 | ||
13 | set(headers dlfcn.h) | 12 | set(headers dlfcn.h) |
@@ -28,12 +27,9 @@ install (FILES ${headers} DESTINATION include) | |||
28 | 27 | ||
29 | if (BUILD_TESTS) | 28 | if (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) |
39 | endif () | 35 | endif () |