[CMake] Problem with get_filename_component() and CMAKE_CXX_COMPILER when finding Qt4
Rolf Eike Beer
eike at sf-mail.de
Mon Apr 22 09:05:07 EDT 2013
Am 22.04.2013 14:26, schrieb Petr Kmoch:
> Hi all.
>
> I'm using CMake 2.8.10.2 to do a Visual Studio 2010 64-bit build, and
> I
> encountered a weird problem with the CMake configure step failing,
> with the
> following output:
>
> CMake Error at C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/CMakeCXXInformation.cmake:37
> (get_filename_component):
> get_filename_component called with incorrect number of arguments
> Call Stack (most recent call first):
> CMakeLists.txt:2 (PROJECT)
CMAKE_CXX_COMPILER is empty at that point.
> I managed to pinpoint this to an issue with try_compile in FindQt4. I
> am
> attaching a minimal test case as well as output of cmake --trace. The
> CMakeList is just this:
I don't see a try_compile in FindQt4.
Eike
More information about the CMake
mailing list