When I put MESSAGE("$ENV{INCLUDE}") In the code at that point I get C:\Program Files\Microsoft Visual Studio 10.0\VC\include
So why would Cmake be picking up my cygwin installation? Anyway I renamed my cygwin directory and it seems to be working now... Thanks Bill! Steve -----Original Message----- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Bill Hoffman Sent: Tuesday, August 30, 2011 11:14 AM To: cmake@cmake.org Subject: Re: [CMake] Working with MSVC10 On 8/30/2011 11:14 AM, Bill Hoffman wrote: > Can you look in CMakeFiles/CMakeError.log and find out what the error is > that is causing this not to work? CMake keeps the output of the > try-compile results for failed tests in that file. Once we know why it > is not compiling, we should have a better idea of how to fix it. > > If you want you can send me the CMakeError.log off the list. > > -Bill Thanks for sending me the log... Looks like you are somehow picking up cygwin include files with your VS project... There are no -I paths, so I am guessing you made some global change on your IDE install that added stuff to the default -I path for VS. Here is the compile line in your file: 1> C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\Tracker.exe /d C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\FileTracker.dll /i E:\clucene-core-2.3.3.4\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug /r E:\CLUCENE-CORE-2.3.3.4\CMAKEFILES\CMAKETMP\CHECKINCLUDEFILE.CXX /b MSBuildConsole_CancelEvent6866d6581fbb4859bc108cce0ac22ecc /c "C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\CL.exe" /c /Zi /nologo /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /GR /Fo"cmTryCompileExec.dir\Debug\\" /Fd"E:/clucene-core-2.3.3.4/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.pdb" /Gd /TP /analyze- /errorReport:prompt "E:\clucene-core-2.3.3.4\CMakeFiles\CMakeTmp\CheckIncludeFile.cxx" /Zm1000 (TaskId:16) 1> CheckIncludeFile.cxx (TaskId:16) 1>C:\cygwin\usr\include\sys/_types.h(36): error C2144: syntax error : '__int64' should be preceded by ';' 1>C:\cygwin\usr\include\sys/_types.h(36): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>C:\cygwin\usr\include\sys/_types.h(74): error C4980: '__value' : use of this keyword requires /clr:oldSyntax command line option 1>C:\cygwin\usr\include\sys/_types.h(74): error C2059: syntax error : '__value' 1>C:\cygwin\usr\include\sys/reent.h(185): error C2061: syntax error : identifier '_read' 1>C:\cygwin\usr\include\sys/reent.h(186): error C2059: syntax error : ')' 1>C:\cygwin\usr\include\sys/reent.h(186): error C2143: syntax error : missing ')' before ';' 1>C:\cygwin\usr\include\sys/reent.h(187): error C2061: syntax error : identifier '_write' 1>C:\cygwin\usr\include\sys/reent.h(188): error C2059: syntax error : ')' 1>C:\cygwin\usr\include\sys/reent.h(188): error C2143: syntax error : missing ')' before ';' 1>C:\cygwin\usr\include\sys/reent.h(188): error C2535: 'int __sFILE::_EXFNPTR(void)' : member function already defined or declared _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.449 / Virus Database: 271.1.1/3866 - Release Date: 08/30/11 06:34:00 _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake