Re: [CMake] TRY_COMPILE help...Does anyone know?

2009-07-31 Thread Hendrik Sattler
Zitat von Ashwin Chandra achan...@panologic.com: I am using a custom compiler and during the initialization of CMake, the CMakeTestCCompiler.cmake is invoked which tries to compile a simple program. However the compile fails it is because of the flags passed to the compiler. For example, the

Re: [CMake] TRY_COMPILE help...Does anyone know?

2009-07-31 Thread Ashwin Chandra
Hendrik, Sorry about the whitespace. The example you showed me is for use of the actual compiler during real build time. However the TRY_COMPILE MACRO is somehow different and does not use normal CXX_FLAGS. It's almost as if it has an internal built-in flags. I don't know how to invoke TRY_COMPILE

Re: [CMake] TRY_COMPILE help...Does anyone know?

2009-07-31 Thread Hendrik Sattler
Zitat von Ashwin Chandra achan...@panologic.com: Hendrik, Sorry about the whitespace. The example you showed me is for use of the actual compiler during real build time. However the TRY_COMPILE MACRO is somehow different and does not use normal CXX_FLAGS. It's almost as if it has an internal

Re: [CMake] TRY_COMPILE help...Does anyone know?

2009-07-31 Thread Ashwin Chandra
How do I make a custom platform file for my custom compiler and get my Cmake project to use that? -Original Message- From: Hendrik Sattler [mailto:p...@hendrik-sattler.de] Sent: Thursday, July 30, 2009 11:34 PM To: Ashwin Chandra Cc: cmake@cmake.org Subject: RE: [CMake] TRY_COMPILE

Re: [CMake] TRY_COMPILE help...Does anyone know?

2009-07-31 Thread Hendrik Sattler
Zitat von Ashwin Chandra achan...@panologic.com: How do I make a custom platform file for my custom compiler With a text editor? and get my Cmake project to use that? Copy it to the same location. HS -Original Message- From: Hendrik Sattler [mailto:p...@hendrik-sattler.de]

Re: [CMake] TRY_COMPILE help...Does anyone know?

2009-07-31 Thread Hendrik Sattler
Zitat von Ashwin Chandra achan...@panologic.com: How do I make a custom platform file for my custom compiler and get my Cmake project to use that? I just see that there already is a Modules/Platform/Windows-NMcl.cmake in CVS that just includes the normal Platform/Windows-cl.cmake file.

[CMake] Howto remove artificial CMake dependencies

2009-07-31 Thread Gerhard Gappmeier
Hi When generating Makefiles, VS projects or Eclipse CDT projects CMake creates artificial dependencies to CMakeLists.txt to be able to recreate the projects when something changes. This is good for developers, but not so good for the users (also developers). We are making portable SDKs and

Re: [CMake] visual studio parallel build

2009-07-31 Thread Martin Apel
j s wrote: I don't think so, but this article claims that by specifying multiple c++ files at the same time, the Visual C++ compiler will parallelize them: http://stackoverflow.com/questions/601970/how-do-i-utilise-all-the-cores-for-nmake

[CMake] About compile c files with cxx compiler

2009-07-31 Thread zhongli.xu
Hi guys, Does anyone know how to compile C files with c++ compiler? I tried the PROJECT(name CXX), but the Makefile didn't do anything and generate a very small shared library file. Thanks, Milo PLEASE READ: The information contained in this e-mail is confidential. If you are not

Re: [CMake] About compile c files with cxx compiler

2009-07-31 Thread Pau Garcia i Quiles
SET_SOURCE_FILES_PROPERTIES( file.c PROPERTIES LANGUAGE CXX ) On Fri, Jul 31, 2009 at 12:56 PM, zhongli...@nomura.com wrote: Hi guys, Does anyone know how to compile C files with c++ compiler? I tried the PROJECT(name CXX), but the Makefile didn’t do anything and generate a very small

Re: [CMake] Problem with CMAKE and m file for Objective-c

2009-07-31 Thread reyman
On Thu, Jul 30, 2009 at 5:36 PM, Tyler Roscoe ty...@cryptio.net wrote: On Thu, Jul 30, 2009 at 01:21:45AM +0200, reyman wrote: I have file extension .m and .h in my src folder, my compiler is GCC. When i want to compile, this is /usr/bin/c++ who launch and compile ... i don't understand

Re: [CMake] Windows Intel Fortran, BLAS (MKL), MPICH2

2009-07-31 Thread Alin M Elena
Hi, There is a time since I did not use intel compilers on windows. About preprocessing a.f90 should be a.F90 and then the file would get preprocessed automatically . Intel handles in a funny way the stack for performance. Heap array is one option, which according to what version you use may

[CMake] custom target not working on windows

2009-07-31 Thread Marc Schafer
I have a java program that generates a header file for the C++ shared library that I am trying to build with cmake. The java generator has an ant script that runs it but it does not take a destination directory for an argument. Therefore I have to run it and then copy the resulting files into my

Re: [CMake] custom target not working on windows

2009-07-31 Thread Hendrik Sattler
Zitat von Marc Schafer winddu...@gmail.com: I have a java program that generates a header file for the C++ shared library that I am trying to build with cmake. The java generator has an ant script that runs it but it does not take a destination directory for an argument. Therefore I have to

Re: [CMake] Howto remove artificial CMake dependencies

2009-07-31 Thread Bill Hoffman
Gerhard Gappmeier wrote: Hi When generating Makefiles, VS projects or Eclipse CDT projects CMake creates artificial dependencies to CMakeLists.txt to be able to recreate the projects when something changes. This is good for developers, but not so good for the users (also developers). We are

Re: [CMake] custom target not working on windows

2009-07-31 Thread Tyler Roscoe
On Fri, Jul 31, 2009 at 08:42:10AM -0400, Marc Schafer wrote: add_custom_target ( generated_messages ALL COMMAND ${ANT_EXECUTABLE} -f ${PROJECT_SOURCE_DIR}/java/MessageGenerator/build.xml run COMMAND ${CMAKE_COMMAND} -E copy_if_different ${DICTIONARY_DIR}/c/messages.h

Re: [CMake] custom target not working on windows

2009-07-31 Thread David Cole
On Fri, Jul 31, 2009 at 11:01 AM, Tyler Roscoe ty...@cryptio.net wrote: On Fri, Jul 31, 2009 at 08:42:10AM -0400, Marc Schafer wrote: add_custom_target ( generated_messages ALL COMMAND ${ANT_EXECUTABLE} -f ${PROJECT_SOURCE_DIR}/java/MessageGenerator/build.xml run COMMAND

Re: [CMake] custom target not working on windows

2009-07-31 Thread Tyler Roscoe
On Fri, Jul 31, 2009 at 11:14:39AM -0400, David Cole wrote: This is not a VS specific problem, but rather how Windows batch files behave in general. If an executable or batch file returns an error exit status, but the call keyword is not used in the calling batch file, then the calling batch

Re: [CMake] TRY_COMPILE help...Does anyone know?

2009-07-31 Thread Ashwin Chandra
I think I don't understand how cmake picks up platform files from my main Cmake project? -Original Message- From: Hendrik Sattler [mailto:p...@hendrik-sattler.de] Sent: Friday, July 31, 2009 12:55 AM To: Ashwin Chandra Cc: cmake@cmake.org Subject: RE: [CMake] TRY_COMPILE help...Does

Re: [CMake] [Insight-users] Build ITK 3.14.0 under Win XP x64 and Visual Studio 2008

2009-07-31 Thread John Drescher
On Fri, Jul 31, 2009 at 11:57 AM, John Drescherdresche...@gmail.com wrote: On Fri, Jul 31, 2009 at 11:50 AM, Charl Bothac.p.bo...@tudelft.nl wrote: Dear John, Thanks for the rapid response! 2009/7/31 John Drescher dresche...@gmail.com: Yes, they do. I have done this on XP64 and windows 7

Re: [CMake] TRY_COMPILE help...Does anyone know?

2009-07-31 Thread Ashwin Chandra
I guess my question is where else can I put this Windows-NMcl.cmake file besides the standard CMake\Modules\Platform directory and how do I get my project to look into a new folder. -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Ashwin

Re: [CMake] TRY_COMPILE help...Does anyone know?

2009-07-31 Thread Hendrik Sattler
Am Freitag 31 Juli 2009 20:44:45 schrieb Ashwin Chandra: I guess my question is where else can I put this Windows-NMcl.cmake file besides the standard CMake\Modules\Platform directory and how do I get my project to look into a new folder. Maybe someone who contributed this Windows-NMcl.cmake

[CMake] CMakeCache changing due to PDB

2009-07-31 Thread Ashwin Chandra
If I initiate a cmake build twice in a row (from clean state), the second time it does re-linking of files all over again. I have traced the problem and found that the build.make files in each project dir have changed. The only changes are the case of the PDB file. For example: $(CXX_FLAGS)