summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2021-02-12 16:36:49 +0100
committerMårten Nordheim <marten.nordheim@qt.io>2021-03-02 17:22:38 +0100
commit60a76da1dc50bfcdbc41dbcd974345d730eac349 (patch)
treea8395443b5b6273b43c1a685dd50d113a414e920 /tools
parent7522f3eeb0d9b130ab7fe0c78d518a1d379f591d (diff)
Fix paths for top-level build
Top-level builds weren't able to find the files with the previous paths Change-Id: If50f66807bf49ac5dedc42bb6d8e323edae73d51 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'tools')
-rw-r--r--tools/repc/CMakeLists.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/repc/CMakeLists.txt b/tools/repc/CMakeLists.txt
index 92e0ab3..0532fa7 100644
--- a/tools/repc/CMakeLists.txt
+++ b/tools/repc/CMakeLists.txt
@@ -4,6 +4,8 @@
## repc Tool:
#####################################################################
+set(REPPARSER_DIR "${PROJECT_SOURCE_DIR}/src/repparser")
+
qt_get_tool_target_name(target_name repc)
qt_add_tool(${target_name}
TARGET_DESCRIPTION "Qt Remote Objects Compiler"
@@ -20,15 +22,15 @@ qt_add_tool(${target_name}
QT_NO_URL_CAST_FROM_STRING
RO_INSTALL_HEADERS=\"$$[QT_INSTALL_HEADERS]/QtRemoteObjects\"
INCLUDE_DIRECTORIES
- ${CMAKE_SOURCE_DIR}/src/repparser
+ ${REPPARSER_DIR}
PUBLIC_LIBRARIES
Qt::CorePrivate
)
# QLALR Grammars:
qt_process_qlalr(
- ${target_name} # special case
- "${CMAKE_CURRENT_SOURCE_DIR}/../../src/repparser/parser.g" # special case
+ ${target_name}
+ "${REPPARSER_DIR}/parser.g"
""
)