[CMake] "simple test program" does not consider LINK_DIRECTORIES

William A. Hoffman billlist at nycap.rr.com
Wed Jul 26 08:12:13 EDT 2006


At 05:40 AM 7/26/2006, che-ranking at arcor.de wrote:
>Hi everyone,
>
>I want to build a Project on windows. This poject uses CMAKE when built on windows (it uses another system on unix/linux systems). I cannot build the project with CMAKE cause it fails to build a "simple test program". The reason for that is that the Linker can't find 'user32.lib'. In my case this file is located in a directory different than MSVC++ because I am using the free MSVC++ Express Edition (so user32.lib is in the directory of the MS Platform SDK). So I thought "No problem, just use LINK_DIRECTORIES to add the SDK directory to the search path for libraries". But this doesn't work. The "simple test program", which seems to be needed by the PROJECT command, is still linked without the SDK directories.
>
>Does anyone have a clue how to fix that?

You have not installed the Express Edition correctly.  Please look at the installation instructions
for MS SDK and MSVC Express.

-Bill



More information about the CMake mailing list