diff options
author | Brad King <brad.king@kitware.com> | 2020-08-10 14:41:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-08-10 14:41:06 (GMT) |
commit | e503fbe38ae8284c0ed027401c177f723283f0d8 (patch) | |
tree | 32e3b29d6322061f5dbc4eabc1aec6ae3ab53438 /Modules/CMakeGenericSystem.cmake | |
parent | 56510b7d852c73c581a3bac1ed491188b4da9c4c (diff) | |
parent | 4c33b305a0c0bc504fa70bf47171a9447a7840c3 (diff) | |
download | CMake-e503fbe38ae8284c0ed027401c177f723283f0d8.zip CMake-e503fbe38ae8284c0ed027401c177f723283f0d8.tar.gz CMake-e503fbe38ae8284c0ed027401c177f723283f0d8.tar.bz2 |
Merge branch 'backport-3.16-automoc-path-prefix-off'
Diffstat (limited to 'Modules/CMakeGenericSystem.cmake')
-rw-r--r-- | Modules/CMakeGenericSystem.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/CMakeGenericSystem.cmake b/Modules/CMakeGenericSystem.cmake index f539b46..a773dcd 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 |