Re: [CMake] Clang + MinGW Linking Issue

2012-05-25 Thread Keith Gardner
Holewinski [mailto:justin.holewin...@gmail.com] Sent: Thursday, May 24, 2012 5:28 PM To: Keith Gardner Cc: Brad King; cmake@cmake.org Subject: Re: [CMake] Clang + MinGW Linking Issue Were you passing custom command-line arguments in the project? Clang only accepts a very limited set of CL-style

Re: [CMake] Clang + MinGW Linking Issue

2012-05-24 Thread Justin Holewinski
Hi Again, I narrowed the problem down to Clang not having Platform/Windows-Clang-{C,CXX}.cmake files. If I add the following two files then everything starts to work as expected: Platform/Windows-Clang-C.cmake: if(MINGW) include(Platform/Windows-GNU) __windows_compiler_gnu(C) else() #

Re: [CMake] Clang + MinGW Linking Issue

2012-05-24 Thread Brad King
On 05/24/2012 12:22 PM, Justin Holewinski wrote: I narrowed the problem down to Clang not having Platform/Windows-Clang-{C,CXX}.cmake files. There is an issue tracker entry for this: http://www.cmake.org/Bug/view.php?id=13035 but it is in the backlog waiting for more feedback and a

Re: [CMake] Clang + MinGW Linking Issue

2012-05-24 Thread Justin Holewinski
On Thu, May 24, 2012 at 10:08 AM, Brad King brad.k...@kitware.com wrote: On 05/24/2012 12:22 PM, Justin Holewinski wrote: I narrowed the problem down to Clang not having Platform/Windows-Clang-{C,CXX}.cmake files. There is an issue tracker entry for this:

Re: [CMake] Clang + MinGW Linking Issue

2012-05-24 Thread Keith Gardner
24, 2012 1:49 PM To: Brad King Cc: cmake@cmake.org Subject: Re: [CMake] Clang + MinGW Linking Issue On Thu, May 24, 2012 at 10:08 AM, Brad King brad.k...@kitware.commailto:brad.k...@kitware.com wrote: On 05/24/2012 12:22 PM, Justin Holewinski wrote: I narrowed the problem down to Clang

Re: [CMake] Clang + MinGW Linking Issue

2012-05-24 Thread Justin Holewinski
...@cmake.org] *On Behalf Of *Justin Holewinski *Sent:* Thursday, May 24, 2012 1:49 PM *To:* Brad King *Cc:* cmake@cmake.org *Subject:* Re: [CMake] Clang + MinGW Linking Issue ** ** On Thu, May 24, 2012 at 10:08 AM, Brad King brad.k...@kitware.com wrote: On 05/24/2012 12:22 PM, Justin

[CMake] Clang + MinGW Linking Issue

2012-05-23 Thread Justin Holewinski
Hi All, I've been trying out CMake for building C++ applications on Windows with Clang, using the MinGW headers/libraries. This works fine, except if I need to pull in non-default system libraries that are included with MinGW, such as libpsapi.a (psapi.lib for VS). For example, if I have the