fix build errors

This commit is contained in:
Akash Mozumdar 2021-04-24 17:12:40 -06:00
parent f26f30dce7
commit a8ae2156d9
2 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,11 @@
cmake_minimum_required(VERSION 3.16)
project(Textractor)
if (NOT MSVC)
message(FATAL_ERROR "Textractor can only be built with Visual Studio")
endif()
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
add_compile_options(

View File

@ -1,5 +1,5 @@
macro(msvc_registry_search)
if(NOT EXISTS Qt5_DIR AND MSVC)
if(NOT DEFINED Qt5_DIR)
# look for user-registry pointing to qtcreator
get_filename_component(QT_BIN [HKEY_CURRENT_USER\\Software\\Classes\\Applications\\QtProject.QtCreator.pro\\shell\\Open\\Command] PATH)