Great call Hendrik! That was it. I had both LIB set and INCLUDE set. I did a "set LIB=" and tried to build, same error. But then I did a "set INCLUDE=" and it created the makefiles successfully!
Thanks a ton! -phil -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hendrik Sattler Sent: Saturday, May 17, 2008 2:41 PM To: Maik Beckmann Cc: cmake@cmake.org Subject: Re: [CMake] MinGW and cmake issues... Maik Beckmann schrieb: >> If I do a >> find_library ( SOMEVAR ws2_32 ) >> >> then cmake finds the wrong one at "C:/WINDOWS/system32/ws2_32.dll" >> (which makes no sense and fails later) until I set the LIB environment >> variable to the mingw dirs. And setting INCLUDE might be as good. >> > > Sorry, you lost me. How is this related to this thread? > Means: environment variable play an overly important rules if something actually compiles. Maybe he has environment variables for another compiler set. HS _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake