mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-23 08:54:12 +08:00
fix build errors
This commit is contained in:
parent
f26f30dce7
commit
a8ae2156d9
@ -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(
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user