Re: [CMake] UTILITY library?

2012-08-12 Thread Yuri Timenkov
But it would be great if one can override msproject target type. It
could be used properly in generator commands and test afterwards
without any problems with configurations. (E.g. if you have test
runner or kind of code generator written in C# or VB).

On Wed, Aug 8, 2012 at 4:49 PM, Klaim - Joël Lamotte mjkl...@gmail.com wrote:
 I apparently fixed the problem by using add_dependencies() instead of
 target_link_libraries() ...

 Klaim / Joel Lamotte

 --

 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
--

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

Re: [CMake] UTILITY library?

2012-08-08 Thread Klaim - Joël Lamotte
I apparently fixed the problem by using add_dependencies() instead of
target_link_libraries() ...

Klaim / Joel Lamotte
--

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

[CMake] UTILITY library?

2012-08-07 Thread Klaim - Joël Lamotte
Hi,

I am using include_external_msproject() to add my Intel Threading Building
Blocks MSVC project file (that have been converted from VS200x to VS2012
through a script).
All is fine, I see the converted project in my solution with no problem.
However, when I add the project in the target links of a project, I get the
following error:



CMake Error at _cmake/NetRushProjectsMacros.cmake:93
(target_link_libraries):

Target tbb of type UTILITY may not be linked into another target. One

may link only to STATIC or SHARED libraries, or to executables with the

ENABLE_EXPORTS property set.




I have no Idea how to fix this. Any suggestions?

I note that I do the same process with google protobuf msvc projects (to
see them in my solution) but it doesn't cause any problem at all.
So I suppose something is wrong with the conversion or the original project
file, but I don't understand at all this error...

Thanks for your attention.

Klaim / Joël Lamotte.
--

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