trentforkert / cmake

Experimental CMake with D support
Other
16 stars 2 forks source link

D support #1

Closed mathstuf closed 10 years ago

trentforkert commented 10 years ago

http://public.kitware.com/Bug/view.php?id=14843

Cool. This will be useful in general, but my main concern with this turns out to "work for me".

I did the following:

find_package(X11 REQUIRED)
target_link_libraries(foo ${X11_LIBRARIES})

Once where foo was a C target and once with it as a D target. I don't know why, but it worked. The C link command generated using -lX11, etc. However, the D link command used libX11.so, etc.

Again, I don't know why it worked, and it definitely shouldn't have worked, but it did.

I'll try to wrap my head around it once I get my cmDependsD stuff pushed and your changes merged in.

mathstuf commented 10 years ago

On Wed, Mar 26, 2014 at 21:16:21 -0700, trentforkert wrote:

Once where foo was a C target and once with it as a D target. I don't know why, but it worked. The C link command generated using -lX11, etc. However, the D link command used libX11.so, etc.

Hrm...probably some other variable is controlling this.

Again, I don't know why it worked, and it definitely shouldn't have worked, but it did.

Which compiler?

trentforkert commented 10 years ago

Which compiler?

GCC 4.7.3 and DMD master.