On 07/29/2011 05:13 PM, Louis Hoefler wrote:
> Hello everyone.
> I have a simple CMake file
> 
> cmake_minimum_required(VERSION 2.8)
> 
> IF(DEFINED USEFCGI)
>   SET(BACKENDLIB wtfcgi)
> ELSE(DEFINED USEFCGI)
>   SET(BACKENDLIB wthttp)
> ENDIF(DEFINED USEFCGI)
> 
> ADD_EXECUTABLE(construction.wt
>   construction.cpp
> )
> 
> if(WIN32)
>   INCLUDE_DIRECTORIES(D:/work/boost_1_46_1 D:/work/wt-3.1.10/src 
> D:/work/wt-3.1.10/build)
>   LINK_DIRECTORIES(D:/work/wt-3.1.10/build/src/Release 
> D:/work/wt-3.1.10/build/src/http/Release)
> else(WIN32)
>   INCLUDE_DIRECTORIES(/usr/include/Wt)
> endif(WIN32)
> 
> # For FastCGI deployment:
> TARGET_LINK_LIBRARIES(construction.wt ${BACKENDLIB} wt)
> 
> If I use this file for visual studio 2010 project file generation the 
> paths in LINK_DIRECTORIES are not set. What am I doing wrong?
> 
> Thank you, Louis

"The command will apply only to targets created *after* it is called."

(LINK_DIRECTORIES()'s documentation)

Regards,

Michael
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to