Skip to content

Commit a8ae215

Browse files
committed
fix build errors
1 parent f26f30d commit a8ae215

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
cmake_minimum_required(VERSION 3.16)
22

33
project(Textractor)
4+
5+
if (NOT MSVC)
6+
message(FATAL_ERROR "Textractor can only be built with Visual Studio")
7+
endif()
8+
49
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
510

611
add_compile_options(

cmake/QtUtils.cmake

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

0 commit comments

Comments
 (0)