summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-09-07 15:31:42 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-09-07 16:24:12 +0200
commit11f4d90f6040d8b24c45512d9e618753a703be0c (patch)
tree537ef8f8ea8fa70781e356cd148593dd7b5f20b0 /tools
parent1b3eddf083e95b3433949b5f2c706ee83fa3e0e7 (diff)
CMake: Fix top-level builds
CMAKE_SOURCE_DIR refers to the top-level qt6 source folder when doing a top-level buil. Use CMAKE_CURRENT_SOURCE_DIR with relative paths instead. Task-number: QTBUG-86454 Change-Id: I0b287b4e606e532a17f7fefef32c319abc3fb607 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'tools')
-rw-r--r--tools/repc/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/repc/CMakeLists.txt b/tools/repc/CMakeLists.txt
index 5bb8eef..92e0ab3 100644
--- a/tools/repc/CMakeLists.txt
+++ b/tools/repc/CMakeLists.txt
@@ -28,7 +28,7 @@ qt_add_tool(${target_name}
# QLALR Grammars:
qt_process_qlalr(
${target_name} # special case
- ${CMAKE_SOURCE_DIR}/src/repparser/parser.g
+ "${CMAKE_CURRENT_SOURCE_DIR}/../../src/repparser/parser.g" # special case
""
)