diff options
author | Brad King <brad.king@kitware.com> | 2017-04-21 12:42:38 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-04-21 12:43:43 (GMT) |
commit | 2b7aecba1663f86148b8c2f1033cfcbd87453ad3 (patch) | |
tree | d13754063e6795fcbab8f492dbf69fe7dcdf36a2 /Modules/Platform | |
parent | 1b0c7bca5ede6eb3965cb23471c6530a08d0d2d5 (diff) | |
parent | 0903531964cff8888dd1cbf2a9c82ac6bb9a522f (diff) | |
download | CMake-2b7aecba1663f86148b8c2f1033cfcbd87453ad3.zip CMake-2b7aecba1663f86148b8c2f1033cfcbd87453ad3.tar.gz CMake-2b7aecba1663f86148b8c2f1033cfcbd87453ad3.tar.bz2 |
Merge topic 'autogen-fixes'
09035319 Autogen: Pass explicit predefines header to moc if possible
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !671
Diffstat (limited to 'Modules/Platform')
-rw-r--r-- | Modules/Platform/Linux-GNU.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Platform/Linux-GNU.cmake b/Modules/Platform/Linux-GNU.cmake index 6878254..ce30a26 100644 --- a/Modules/Platform/Linux-GNU.cmake +++ b/Modules/Platform/Linux-GNU.cmake @@ -12,4 +12,5 @@ macro(__linux_compiler_gnu lang) # We pass this for historical reasons. Projects may have # executables that use dlopen but do not set ENABLE_EXPORTS. set(CMAKE_SHARED_LIBRARY_LINK_${lang}_FLAGS "-rdynamic") + set(CMAKE_${lang}_COMPILER_PREDEFINES_COMMAND "${CMAKE_${lang}_COMPILER}" "-dM" "-E" "-c" "${CMAKE_ROOT}/Modules/CMakeCXXCompilerABI.cpp") endmacro() |