Commit 00d5cd182732c6bfc431f0e4f38e1b18647ce938

Timothy Gu 2016-03-23T02:20:15

Merge pull request #25 from xantares/patch-1 Removed wine detection

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