summaryrefslogtreecommitdiff
path: root/Modules/CMakeGenericSystem.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-08-10 10:41:06 -0400
committerBrad King <brad.king@kitware.com>2020-08-10 10:41:06 -0400
commite503fbe38ae8284c0ed027401c177f723283f0d8 (patch)
tree32e3b29d6322061f5dbc4eabc1aec6ae3ab53438 /Modules/CMakeGenericSystem.cmake
parent56510b7d852c73c581a3bac1ed491188b4da9c4c (diff)
parent4c33b305a0c0bc504fa70bf47171a9447a7840c3 (diff)
downloadcmake-e503fbe38ae8284c0ed027401c177f723283f0d8.tar.gz
Merge branch 'backport-3.16-automoc-path-prefix-off'
Diffstat (limited to 'Modules/CMakeGenericSystem.cmake')
-rw-r--r--Modules/CMakeGenericSystem.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/CMakeGenericSystem.cmake b/Modules/CMakeGenericSystem.cmake
index f539b46581..a773dcd4b4 100644
--- a/Modules/CMakeGenericSystem.cmake
+++ b/Modules/CMakeGenericSystem.cmake
@@ -26,7 +26,9 @@ set(CMAKE_FIND_LIBRARY_SUFFIXES ".so" ".a")
set(CMAKE_AUTOGEN_ORIGIN_DEPENDS ON)
set(CMAKE_AUTOMOC_COMPILER_PREDEFINES ON)
-set(CMAKE_AUTOMOC_PATH_PREFIX ON)
+if(NOT DEFINED CMAKE_AUTOMOC_PATH_PREFIX)
+ set(CMAKE_AUTOMOC_PATH_PREFIX OFF)
+endif()
set(CMAKE_AUTOMOC_MACRO_NAMES "Q_OBJECT" "Q_GADGET" "Q_NAMESPACE" "Q_NAMESPACE_EXPORT")
# basically all general purpose OSs support shared libs