[CMake] Problem with link directories

Brad King brad.king at kitware.com
Thu Mar 9 09:34:03 EST 2006


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