Skip to content

Commit

Permalink
fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Artikash committed Apr 24, 2021
1 parent f26f30d commit a8ae215
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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(
Expand Down
2 changes: 1 addition & 1 deletion cmake/QtUtils.cmake
Original file line number Diff line number Diff line change
@@ -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)

Expand Down

0 comments on commit a8ae215

Please sign in to comment.