forked from Public-Mirror/Textractor
fix build errors
This commit is contained in:
parent
f26f30dce7
commit
a8ae2156d9
@ -1,6 +1,11 @@
|
|||||||
cmake_minimum_required(VERSION 3.16)
|
cmake_minimum_required(VERSION 3.16)
|
||||||
|
|
||||||
project(Textractor)
|
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)
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
|
||||||
|
|
||||||
add_compile_options(
|
add_compile_options(
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
macro(msvc_registry_search)
|
macro(msvc_registry_search)
|
||||||
if(NOT EXISTS Qt5_DIR AND MSVC)
|
if(NOT DEFINED Qt5_DIR)
|
||||||
# look for user-registry pointing to qtcreator
|
# 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)
|
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