[CMake] Problem with link directories

jolinda jolinda at uoregon.edu
Thu Mar 9 18:03:12 EST 2006


It already is before the targets that need it are added. Any other ideas?

Jolinda

-----Original Message-----
From: Brad King [mailto:brad.king at kitware.com] 
Sent: Thursday, March 09, 2006 6:34 AM
To: jolinda at uoregon.edu
Cc: cmake at www.cmake.org
Subject: Re: [CMake] Problem with link directories


jolinda wrote:
> Hi,
> 
> I have a Visual Studio 7.0 project that was building fine using 
> CMake-1.8 that won't build with version 2.2. I have a simple 
> CMakeLists.txt file that includes things like:
> 
> LINK_DIRECTORIES( ${DCMTK_PATH}/dcmdata/libsrc
>                   ${DCMTK_PATH}/dcmimage/libsrc )
> 
> When using version 1.8, these directories show up under 
> "AdditionalLibraryDirectories" in the file Voxelator.vcproj.cmake. 
> However, after using version 2.2, I see AdditionalLibraryDirectories = 
> "".
> 
> Has something changed in the new version?

Move the call to be before the targets that need it are added.

-Brad



More information about the CMake mailing list