Commit 604fd008a9566467f47e97c46330a90045da1755

xantares 2016-03-23T09:43:39

Removed wine detection It can be set canonically by using CMAKE_CROSSCOMPILIING_EMULATOR variable

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 ()