diff --git a/CMakeLists.txt b/CMakeLists.txt index 782147c4314f8911517053eef1ef218655d15bf2..16700072069f015dc744063a724a6900e2073d3f 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)