[Cmake] CMake is unable to compile simple test program

Neil Mackie Neil.Mackie at ofcom.org.uk
Tue, 27 Jan 2004 09:34:02 -0000


I have only just started using CMake. I have been lurking on the mailing li=
st for a while to see if this is a FAQ (it is a very basic question) but th=
e topics are far beyond what I'm trying to do.=20

I have a CMakeLists.txt file, and I have run CMake (1.8 patch 2). I have se=
t paths for "Where is the source code" and "Where to build the binaries". I=
 have set "Build for" to nmake (I have a Unix background but am now develop=
ing on windows and would like to be able to do builds without running Micro=
soft Visual Studio). When I press the "configure" button I get the message=
     The C compiler "cl" is not able to compile a simple test program
        ...
    LINK fatal error LNK1104 cannot open file kernel32.lib

I take this to mean that when CMake is doing its test build it fails becaus=
e it does not have the correct path to the library kernel32.lib.
Looking at the advanced cache values I see CMake has the variable CMAKE_STA=
NDARD_LIBRARIES which has a value that includes kernel32.lib, but I cannot =
see any variable that has a value that includes the path to that library.

That is as far as I have got. Does anyone have suggestions as to what I can=
 try next or further investigations I can do? I can post the full diagnosti=
cs if it would help.

Regards,
Neil (J Mackie).


***************************************************************************=
********
Ofcom is the regulator for the UK communications industry, with responsibil=
ities across television, radio, telecommunications and wireless communicati=
ons services. Ofcom exists to further the interests of citizen-consumers as=
 the communications industries enter the digital age.

Ofcom has taken over the responsibilities and assumed the powers of the fiv=
e former regulators it has replaced - the Broadcasting Standards Commission=
, the Independent Television Commission, Oftel, the Radio Authority and the=
 Radiocommunications Agency.

This email and any files transmitted with it are confidential and intended =
solely for the use of the individual or entity to whom they are addressed.

If you have received this email in error please notify the originator of th=
e message. This footer also confirms that this email message has been scann=
ed for the presence of computer viruses.

Any views expressed in this message are those of the individual sender, exc=
ept where the sender specifies and with authority, states them to be the vi=
ews of Ofcom.
***************************************************************************=
********