diff options
author | Brad King <brad.king@kitware.com> | 2020-08-10 14:49:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-08-10 14:49:18 (GMT) |
commit | db659e18bc8d5869e28c315eb0ce5a6fd8ccf151 (patch) | |
tree | 1da0c38e30880d69c89e63fdad4db3da74c1116a /Modules | |
parent | 72409ee089ee1c969bb11d36da9543a58b354321 (diff) | |
parent | e503fbe38ae8284c0ed027401c177f723283f0d8 (diff) | |
download | CMake-db659e18bc8d5869e28c315eb0ce5a6fd8ccf151.zip CMake-db659e18bc8d5869e28c315eb0ce5a6fd8ccf151.tar.gz CMake-db659e18bc8d5869e28c315eb0ce5a6fd8ccf151.tar.bz2 |
Merge branch 'backport-3.17-automoc-path-prefix-off'
Diffstat (limited to 'Modules')
-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 000fba1..6f665a6 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 |