diff --git a/development/cmake/modules/LyXPaths.cmake b/development/cmake/modules/LyXPaths.cmake index c0a0c849ff..c0d7a189a6 100644 --- a/development/cmake/modules/LyXPaths.cmake +++ b/development/cmake/modules/LyXPaths.cmake @@ -29,17 +29,7 @@ if(NOT WIN32) set(_prog_path ~/bin) else() if(WINDEPS) - FIND_PROGRAM(LYX_QMAKE NAMES qmake) - if(NOT LYX_QMAKE) - message("------ qmake not found. Add YOUR_PATH\\lyx-windows-deps-msvc-qt4\\qt-4\\bin") - message("------ to PATH: set PATH=%PATH%;YOUR_PATH\\lyx-windows-deps-msvc-qt4\\qt-4\\bin") - message(FATAL_ERROR "Exit.") - else() - GET_FILENAME_COMPONENT(LYX_QMAKE_PATH ${LYX_QMAKE} PATH) - set(WINDEPSDIR "${LYX_QMAKE_PATH}/../..") - endif() - - set(GNUWIN32_DIR ${WINDEPSDIR}) + set(GNUWIN32_DIR "${LYX_QMAKE_PATH}/../..") endif() find_package(GNUWIN32 REQUIRED)