diff --git a/CMakeLists.txt b/CMakeLists.txt index 782147c4..16700072 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,8 +18,10 @@ find_package(purple) set(glib_DIR "${CMAKE_SOURCE_DIR}/cmake_modules") find_package(glib) -set(popt_DIR "${CMAKE_SOURCE_DIR}/cmake_modules") -find_package(popt) +if (NOT WIN32) + set(popt_DIR "${CMAKE_SOURCE_DIR}/cmake_modules") + find_package(popt) +endif() set(event_DIR "${CMAKE_SOURCE_DIR}/cmake_modules") find_package(event)