On Sat, Jun 06, 2009 at 09:30:00AM +0200, motes motes wrote: > I use cmake to create makefiles for a C++ project. One of the target links > is just called 'z': > > TARGET_LINK_LIBRARIES(z ...
What do you mean by "target links"? Do you mean "libraries needed by my target"? Your TARGET_LINK_LIBRARIES line makes it look like z is the name of the target you are building. > When I try to compile the code (Visual Studio 2008) I get: > > LINK : fatal error LNK1104: cannot open file 'z.lib' > > I have tried to download zlib for windows and point to the zlib .lib files > from VS 2008 but that is not what it want. What is 'z'? What do you mean by "that is not what it want"? The error you are seeing implies that VS can't find the z.lib that you downloaded. Maybe you need to adjust your library search path with link_directories()? tyler _______________________________________________ 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