[CMake] TARGET_LINK_LIBRARIES - Windows version

Vitor Vasconcelos Araujo Silva vasconcv at loria.fr
Mon Apr 16 09:33:10 EDT 2007


	Hello all,

	I have a small problem on Windows and I bet in a wrong configuration I 
made. I have a directory tree like this:

	 - Project
		- lib
			- testsuite
		- apps
		- doc

	I have one CMakeLists.txt file in each directory. On Linux, it works 
fine. But, on Windows, the problem is that I set the lib project inside 
"lib" dir and below it I have a TARGET_LINK_LIBRARIES inside "testsuite" 
dir. Of course the lib was not built yet and CMake complains. My two 
questions:

	Is there a better way to do it?
	
	When I try to build the Visual Studio Project from "lib" dir, I have no 
errors and I can build it easyly. Right now I started to "glue" 
everything and a try to call the CMake from the top dir doesn't work. 
I'm sure I'm missing some points, hope you can help me.
	
	Thanks a lot,

	Vitor VASCONCELOS
	INRIA Lorraine



More information about the CMake mailing list