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