zezer3 / cmaked2

Automatically exported from code.google.com/p/cmaked2
0 stars 0 forks source link

Using other languages together D #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Mixing C/C++/... and D programs (see attached files).

What is the expected output? What do you see instead?
It should link the executables of the other language. But it doesn't since 
-L-lboost_filesystem-mt does not work.

Please use labels and text to provide additional information.
The problem is that we set
SET(CMAKE_LIBRARY_PATH_FLAG "-L-L")
SET(CMAKE_LINK_LIBRARY_FLAG "-L-l")
Since these variables are only there once we mess with the C/C++ linking.

The only workaround I see is to use the other linker whenever the project uses 
additional languages to D. That means the variables above should only be set if 
D is the project's only language.

Original issue reported on code.google.com by jens.k.mueller@gmail.com on 27 Sep 2010 at 10:06

Attachments: