aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2008-09-01 13:08:40 +0000
committerDavid Faure <faure@kde.org>2008-09-01 13:08:40 +0000
commit6579d816eaadbefc0cfc81486436937e9e65d5ac (patch)
tree643bd44d3c7f9e9fb073a2febec34c9674b29386
parent40413ebf9d94f41ac11113a625b6f22df8f4d88c (diff)
downloadextra-cmake-modules-6579d816eaadbefc0cfc81486436937e9e65d5ac.tar.gz
extra-cmake-modules-6579d816eaadbefc0cfc81486436937e9e65d5ac.tar.bz2
Show the actual compiler error when compilation of a simple qt test program fails.
(In my case it was the removal of a symlink to the qt-copy dir.) svn path=/trunk/KDE/kdelibs/; revision=855787
-rw-r--r--modules/FindKDE4Internal.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake
index 5ca46f96..a41be4aa 100644
--- a/modules/FindKDE4Internal.cmake
+++ b/modules/FindKDE4Internal.cmake
@@ -1104,10 +1104,10 @@ if (CMAKE_COMPILER_IS_GNUCXX)
file(WRITE "${_source_file}" "${_source}")
set(_include_dirs "-DINCLUDE_DIRECTORIES:STRING=${QT_INCLUDES}")
- try_run(_run_result _compile_result ${CMAKE_BINARY_DIR} ${_source_file} CMAKE_FLAGS "${_include_dirs}")
+ try_run(_run_result _compile_result ${CMAKE_BINARY_DIR} ${_source_file} CMAKE_FLAGS "${_include_dirs}" COMPILE_OUTPUT_VARIABLE _compile_output_var)
if(NOT _compile_result)
- message(FATAL_ERROR "Could not compile simple test program:\n ${_source}")
+ message(FATAL_ERROR "Could not compile simple test program:\n ${_source}\n${_compile_output_var}")
endif(NOT _compile_result)
if(_run_result)
message(FATAL_ERROR "Qt compiled without support for -fvisibility=hidden. This will break plugins and linking of some applications. Please fix your Qt installation.")