[CMake] [MSVC] LINK_DIRECTORY do not add directories to project

William A. Hoffman billlist at nycap.rr.com
Tue Feb 7 10:50:03 EST 2006


At 10:26 AM 2/7/2006, Vincent Daanen wrote:
>Dear cmake users,
>
>I wrote a CMakeLists.txt to create a MSVC 6.0 project.
>The problem is that the link directories are not added to the projet !
>
>here is the cmakelists.txt line :
>  
>LINK_DIRECTORIES($(GMCAO)/tech/lib $(GMCAO)/GMCAO/lib $(HTMLHELP_DIR)/Lib $(TIMC_DIR)/DicomTools/lib/Mfc $(TIMC_DIR)/ArrayTimcNew/lib/Mfc)
>
>do I miss something ?
>
>please help
>
>Vincent\

You need to give a smaller example that does not work.  Perhaps the 
LINK_DIRECTORIES command is in the wrong place, like after the target
that is supposed to be using it?

-Bill



More information about the CMake mailing list