From 604fd008a9566467f47e97c46330a90045da1755 Mon Sep 17 00:00:00 2001 From: xantares Date: Wed, 23 Mar 2016 09:43:39 +0100 Subject: Removed wine detection It can be set canonically by using CMAKE_CROSSCOMPILIING_EMULATOR variable --- CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 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 () project (dlfcn C) option(BUILD_SHARED_LIBS "shared/static libs" ON) -option(USE_WINE "use wine for test" ON) option(BUILD_TESTS "tests?" OFF) set(headers dlfcn.h) @@ -28,12 +27,9 @@ install (FILES ${headers} DESTINATION include) if (BUILD_TESTS) enable_testing() - if (USE_WINE) - find_program(WINE_EXECUTABLE NAMES wine) - endif () add_library(testdll SHARED testdll.c) set_target_properties(testdll PROPERTIES PREFIX "") add_executable(t_dlfcn test.c) target_link_libraries(t_dlfcn dl) - add_test ( NAME t_dlfcn COMMAND ${WINE_EXECUTABLE} t_dlfcn${CMAKE_EXECUTABLE_SUFFIX} ) + add_test (NAME t_dlfcn COMMAND t_dlfcn) endif () -- cgit v1.2.3-55-g6feb