[CMake] CMakeCache changing due to PDB
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) $(CXX_DEFINES) /TP /FoCMakeFiles\CompressedTile_TestRunner.dir\CompressedTile_TestRunner.cp p.obj /FdC:\trunk\Debug\wxp_x86\bin\compressedtile_testrunner.pdb -c C:\trunk\Debug\wxp_x86\atto\common\CompressedTile_TestRunner.cpp" Vs "$(CXX_FLAGS) $(CXX_DEFINES) /TP /FoCMakeFiles\CompressedTile_TestRunner.dir\CompressedTile_TestRunner.cp p.obj /FdC:\trunk\Debug\wxp_x86\bin\CompressedTile_TestRunner.pdb -c C:\trunk\Debug\wxp_x86\atto\common\CompressedTile_TestRunner.cpp" Notice the pdb file changed in case. I think what is happening is that the compiler is generating the pdb file in all lower case on the first build run and when doing a second build run, it somehow knows the file is in lowercase now and it updates the build.make files (which in turn tells cmake and visual studio compiler to do the linking phase over again). Note that a third or more builds work fine (no relinking). Is there anyway to have the build.make file always generate the pdb section in lowercase? Where does it get the case of the file anyway? Thanks! ___ 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] TRY_COMPILE help...Does anyone know?
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 can help you with this. The problem is that this file needs to be loaded before your first CMakeLists.txt is loaded. Thus, it must be in the standard module path, I guess. HS ___ 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] TRY_COMPILE help...Does anyone know?
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 Chandra Sent: Friday, July 31, 2009 8:37 AM To: Hendrik Sattler Cc: cmake@cmake.org Subject: Re: [CMake] TRY_COMPILE help...Does anyone know? 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 anyone know? Zitat von Ashwin Chandra : > 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. Doesn't that work for you? HS ___ 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] [Insight-users] Build ITK 3.14.0 under Win XP x64 and Visual Studio 2008
On Fri, Jul 31, 2009 at 11:57 AM, John Drescher wrote: > On Fri, Jul 31, 2009 at 11:50 AM, Charl Botha wrote: >> Dear John, >> >> Thanks for the rapid response! >> >> 2009/7/31 John Drescher : >>> Yes, they do. I have done this on XP64 and windows 7 with no problems. >>> However I do not use the code that was causing the problem in the >>> example. I also am building with VS2005 if that makes a difference. >> >> How do you manage not to use that code? Doesn't VXL always get compiled? >> > I will check this. I am typing on a xp64 box. I know I have built itk, > vtk and qt for both 32 and 64 bit in the last 2 months however I do > use the 64 bit less often because the main project I work on has some > external libraries that do not work properly when compiled for 64 bit. > The CT viewer I have developed however does work at 64 bit, that is it > did work the last time I built 64 bit binaries.. > I am sorry I used itk 3.12 //Value Computed by CMake itksys_BINARY_DIR:STATIC=X:/64Bit/VC.80/Libraries/ITK/Utilities/kwsys //Dependencies for the target itksys_LIB_DEPENDS:STATIC=general;ws2_32; //Value Computed by CMake itksys_SOURCE_DIR:STATIC=X:/CMakeBased/Libraries/InsightToolkit-3.12.0/Utilities/kwsys John ___ 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] TRY_COMPILE help...Does anyone know?
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 anyone know? Zitat von Ashwin Chandra : > 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. Doesn't that work for you? HS ___ 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] custom target not working on windows
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 file > exits without executing the remainder of the script. Using the call keyword > prevents that behavior and makes it work like you'd expect. I have seen this behavior even when the batch file exits normally, without error condition. This is in VS2005 if it matters. tyler ___ 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] custom target not working on windows
On Fri, Jul 31, 2009 at 11:01 AM, Tyler Roscoe 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 > > ${CMAKE_COMMAND} -E copy_if_different ${DICTIONARY_DIR}/c/messages.h > > ${PROJECT_BINARY_DIR}/include/messages.h > > ) > > > > This works fine on Linux and Mac with the make generator but does not > work > > on Windows XP with the Visual studio 2008 generator. From the build log > > file, I can see that a batch file is getting generated with two commands: > > one to run ant and the other to do the copy. When the batch file is run, > > the ant command works fine, but the copy never seems to happen. My > library > > fails to build because it can't find messages.h even though it does exist > in > > ${DICTIONARY_DIR}/c/messages.h > > I have run into this. Here's a note from our (internal) wiki: > > "If invoking a DOS batch file you must precede the command with the call > keyword. Also, it must not have quotes surrounding the call and the > command." > > Your ant "executable" is probably a batch file. For reasons I don't > remember, VS gets confused and likes to exit immediately after running a > batch file as a custom build step. 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 file exits without executing the remainder of the script. Using the call keyword prevents that behavior and makes it work like you'd expect. HTH, David ___ 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] custom target not working on windows
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 > ${PROJECT_BINARY_DIR}/include/messages.h > ) > > This works fine on Linux and Mac with the make generator but does not work > on Windows XP with the Visual studio 2008 generator. From the build log > file, I can see that a batch file is getting generated with two commands: > one to run ant and the other to do the copy. When the batch file is run, > the ant command works fine, but the copy never seems to happen. My library > fails to build because it can't find messages.h even though it does exist in > ${DICTIONARY_DIR}/c/messages.h I have run into this. Here's a note from our (internal) wiki: "If invoking a DOS batch file you must precede the command with the call keyword. Also, it must not have quotes surrounding the call and the command." Your ant "executable" is probably a batch file. For reasons I don't remember, VS gets confused and likes to exit immediately after running a batch file as a custom build step. tyler ___ 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] Howto remove artificial CMake dependencies
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 making portable SDKs and libraries that we distribute also with source so that the customer is able to tune and recompile it. So we want to create projects without this dependencies that we can ship to the customer. We don't want to force our customers to install CMake, what would be an additional burden for them. And the customers don't need to recreate this projects because they are just using the libs. If they really need the add new files, they would do it with their native IDEs. Is it possible to create projects without this dependencies to CMake? That is not how CMake works. Your customers will have to install CMake. Without a CMake install the Makefiles would not work, as CMake does lots of extra checks during make time and computes depend information. So, CMake must be installed on the machine you are building on. -Bill ___ 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] custom target not working on windows
Zitat von 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 binary directory. I created the following custom target to do this: I suggest to do it diffently: copy the source with copy_if_different into your build tree and create the .h file there. If the source files are mentioned in the .xml file, you can use configure_file() to create the .xml (in build tree) from an .xml.in file (in source tree) and run ant on the result. 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 ${PROJECT_BINARY_DIR}/include/messages.h ) Make that a add_custom_command() to get the dependencies right. The custom command for the .h file should have the .xml as dependency (see above). HS ___ 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] custom target not working on windows
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 binary directory. I created the following custom target to do this: 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 ${PROJECT_BINARY_DIR}/include/messages.h ) This works fine on Linux and Mac with the make generator but does not work on Windows XP with the Visual studio 2008 generator. From the build log file, I can see that a batch file is getting generated with two commands: one to run ant and the other to do the copy. When the batch file is run, the ant command works fine, but the copy never seems to happen. My library fails to build because it can't find messages.h even though it does exist in ${DICTIONARY_DIR}/c/messages.h Here is the copy command from the generated batch file: "C:\Program Files\CMake 2.6\bin\cmake.exe" -E copy_if_different "C:/Documents and Settings/mschafer/My Documents/foamcut/java/MessageGenerator/dictionary/c/messages.h" "C:/Documents and Settings/mschafer/My Documents/build_foamcut/include/messages.h" If I run this from a command prompt, it also works fine and then the library will build. Visual does not report any errors. Can anybody help me figure out why the copy is not happening on one platform but works on the others? Thanks, Marc ___ 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] Windows Intel Fortran, BLAS (MKL), MPICH2
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 be buggy. The safest bet would be to use dynamic allocated arrays and try to conserve the number of allocate and deallocate. Alin -- __ "If the Universities will not study useless subjects, who will?" G. F. FitzGerald, Nature, 45/46, 392 (1892) __ Mr Alin M ELENA Irish Centre for High-End Computing -- www.ichec.ie The Design Tower, Trinity Technology & Enterprise Campus Grand Canal Quay, Dublin 2, Ireland Tel: +353 (0) 1 5241608 ext 29 Fax: +353 (0) 1 7645845 http://alin.elenaworld.net alin.el...@ichec.ie alinm.el...@gmail.com __ On Friday 31 July 2009 08:06:21 you wrote: > NB. The line I sent was cut/pasted wrong > set(CMAKE_Fortran_FLAGS "/real_size:64 /W1 /nologo /Qopenmp > /F1073741824 /fpp" CACHE "flags" STRING FORCE) > JB > > > Alin > > > > I'm OK with BLAS for the time being, but I am having a lot of trouble > > with the Intel Fortran Compiler ... for example I have flags set to > > > >if(WIN32) > > MESSAGE("Win32 IFort compiler") > > set(CMAKE_Fortran_FLAGS "/real_size:64 /W1 /nologo /Qopenmp > > /F1073741824" /fpp CACHE "flags" STRING FORCE) > >else(WIN32) > > > > the /fpp should tell the compiler to use the preprocessor, but it > > looks as though the flag is being ignored. I cannot make the > > Compiling with Intel(R) Visual Fortran 11.0.074 [IA-32]... > > mhd_module.f90 > > D:\Code\CSCS\MHD\source\mhdV\readdmp.f90(12): warning #5117: Bad # > > preprocessor line > > D:\Code\CSCS\MHD\source\mhdV\readdmp.f90(14): warning #5117: Bad # > > preprocessor line > > > > for #ifdef blah blah statements. > > > > Also, despite having the stack size set large, I get stack overflow > > errors on even the smallest arrays. (I use /heap_arrays to geta round > > this, bu the memory is not freed and the memory grows until exhausted!) > > > > Have you encountered any such problems? > > > > thanks > > > > JB > > > >> Hi John, > >> > >> I am the maintainer of BLAS/LAPACK modules for cmake. in principle > >> things should not be too complicated. > >> > >> this is how I do it on my system. > >> > >> ## > >> ## external libs > >> set(BLA_STATIC OFF) > >> if (UNIX) > >> set(BLA_VENDOR "Intel10_64lp") > >> endif(UNIX) > >> if (WIN32) > >> set(BLA_VENDOR "Intel10_32") > >> endif(WIN32) > >> > >> set(BLA_F95 ON) > >> find_package(Threads) > >> message("Using this linkage for threads ${CMAKE_THREAD_LIBS_INIT}") > >> find_package(MKLSOLVER REQUIRED) > >> message("Using this linkage for mkl: ${MKLSOLVER95_LIBRARIES} > >> ${CMAKE_THREAD_LIBS_INIT} with flags ${MKLSOLVER_LINKER_FLAGS} ") > >> > >> set(LIBS ${MKLSOLVER_LINKER_FLAGS} ${MKLSOLVER95_LIBRARIES} > >> ${CMAKE_THREAD_LIBS_INIT}) > >> > >> > >> I may assist you to setup it if it does not work. > >> > >> regards, > >> > >> Alin ___ 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] Problem with CMAKE and m file for Objective-c
On Thu, Jul 30, 2009 at 5:36 PM, Tyler Roscoe 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 why CMake doesn't recognize the .m file and use the C > > compilator gcc. > Finaly i have find a solution with this code src : file( GLOB_RECURSE source_files src/*.h src/*.m src/*.c ) SET_SOURCE_FILES_PROPERTIES( ${source_files} PROPERTIES LANGUAGE C ) gcc -x objective-c produce stray error with LD linking, but gcc without this option running without LD error. Objective-c compiler (gcc) is ok with this. > Have you tried playing with enable_language()? I'm guessing CMake > doesn't know that it should use gcc with .m files and is defaulting to > C++ mode. > > > If a try to modify CXX Compiler for gcc, i have "stray error" in all my > > source file when LD link the .o ... So, a very bad solution ... > > How did you modify the compiler? > > tyler > Thanks lot for your response tyler :] Seb. ___ 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] About compile c files with cxx compiler
SET_SOURCE_FILES_PROPERTIES( file.c PROPERTIES LANGUAGE CXX ) On Fri, Jul 31, 2009 at 12:56 PM, 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 shared library file. > > > > Thanks, > > Milo > > PLEASE READ: The information contained in this e-mail is confidential. If > you are not an intended recipient of this e-mail you must not copy, > distribute or take any further action in reliance upon it and you should > delete it and notify the sender. E-mail is not a secure method of > communication. Nomura Securities Co. Ltd Shanghai Representative Office > cannot accept responsibility for the accuracy or completeness of this > message or any attachment(s). This transmission could contain viruses, be > corrupted, destroyed, incomplete, intercepted, lost or arrive late. If > verification of this e-mail is sought then please request a hard copy. > Unless otherwise stated any views or opinions presented are solely those of > the author and do not represent those of Nomura Securities Co. Ltd Shanghai > Representative Office. This e-mail is intended for information purposes only > and is not a solicitation or offer to buy or sell securities or related > financial instruments. > ___ > 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 > -- Pau Garcia i Quiles http://www.elpauer.org (Due to my workload, I may need 10 days to answer) ___ 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] About compile c files with cxx compiler
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 an intended recipient of this e-mail you must not copy, distribute or take any further action in reliance upon it and you should delete it and notify the sender. E-mail is not a secure method of communication. Nomura Securities Co. Ltd Shanghai Representative Office cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). This transmission could contain viruses, be corrupted, destroyed, incomplete, intercepted, lost or arrive late. If verification of this e-mail is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura Securities Co. Ltd Shanghai Representative Office. This e-mail is intended for information purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. ___ 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] visual studio parallel build
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 > > > Regards, As nmake cannot perform parallel builds on its own, it would be nice, if CMake could use the possibility of the cl compiler itself to compile multiple files in parallel. Qt's qmake does this by creating a temporary file containing a single cl invocation with multiple names of source files to be built. Wouldn't it be possible for the NMake generator to perform something similar? Regards, Martin ___ 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] Howto remove artificial CMake dependencies
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 libraries that we distribute also with source so that the customer is able to tune and recompile it. So we want to create projects without this dependencies that we can ship to the customer. We don't want to force our customers to install CMake, what would be an additional burden for them. And the customers don't need to recreate this projects because they are just using the libs. If they really need the add new files, they would do it with their native IDEs. Is it possible to create projects without this dependencies to CMake? -- mit freundlichen Grüßen / best regards *Gerhard Gappmeier* ascolab GmbH - automation systems communication laboratory Tel.: +49 9131 691 123 Fax: +49 9131 691 128 Web: http://www.ascolab.com GPG-Key: http://www.ascolab.com/gpg/gg.asc -- *ascolab GmbH* Geschäftsführer: Gerhard Gappmeier, Matthias Damm, Uwe Steinkrauß Sitz der Gesellschaft: Am Weichselgarten 7 • 91058 Erlangen • Germany Registernummer: HRB 9360 Registergericht: Amtsgericht Fürth signature.asc Description: OpenPGP digital signature ___ 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] TRY_COMPILE help...Does anyone know?
Zitat von Ashwin Chandra : 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. Doesn't that work for you? HS ___ 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] TRY_COMPILE help...Does anyone know?
Zitat von Ashwin Chandra : 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] Sent: Thursday, July 30, 2009 11:34 PM To: Ashwin Chandra Cc: cmake@cmake.org Subject: RE: [CMake] TRY_COMPILE help...Does anyone know? Zitat von 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 and have it compile the test program with the proper /Fo flags. (It always defaults to /o). These are two different things. With the platform file, you tell cmake how to work with your compiler. The TRY_COMPILE macro should use this information. HS -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Hendrik Sattler Sent: Thursday, July 30, 2009 11:00 PM To: cmake@cmake.org Subject: Re: [CMake] TRY_COMPILE help...Does anyone know? Zitat von Ashwin Chandra : 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 command line that is generated by CMake is: "C:\PROGRA~1\COMMON~1\COMPUW~1\NMShared\NMcl.exe $(C_DEFINES) $(C_FLAGS) -o CMakeFiles\cmTryCompileExec.dir\testCCompiler.c.obj -c C:\trunk\Debug\wxp_x86\CMakeFiles\CMakeTmp\testCCompiler.c" The "-o" should be a "-Fo", otherwise the object file generated is not of the form "testCCompiler.c.obj". Is there anyway to tell CMake to use "-Fo" instead of "-o"? Or perhaps disable the Test? Thanks! Putting less empty lines in mails may also help. Did you try look at the file in Modules/Platform like http://public.kitware.com/cgi-bin/viewcvs.cgi/Modules/Platform/cl.cmake? revision=1.6&root=CMake&view=markup It also uses /Fo and thus obviously sets this. Each other compiler also fits as example. HS ___ 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