<div dir="ltr"><div><div><div>Hi all.<br><br></div>I&#39;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:<br>
<br>CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCXXInformation.cmake:37 (get_filename_component):<br>  get_filename_component called with incorrect number of arguments<br>Call Stack (most recent call first):<br>
  CMakeLists.txt:2 (PROJECT)<br><br></div>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:<br><br>#<br>
cmake_minimum_required(VERSION 2.8.10.2)<br>project(MyTest C CXX)<br><br>find_package(Qt4 COMPONENTS QtCore REQUIRED)<br>#<br><br></div><div>The C and CXX compilers are discovered OK, but then the find reports the error.<br>
<br></div><div>I&#39;ve seen similar errors related to Visual Studio 2010 &amp; 2012 parallel installs, but the machine has never had 2012 installed on it; it just has 2005 and 2010.<br></div><div><br>Would anyone have any ideas how to fix this? Thanks in advance for any pointers.<br>
<br>Petr<br></div></div>