Re: [CMake] How to rename the resulting Makefile.

2010-10-12 Thread Hendrik Sattler
Am Dienstag 12 Oktober 2010, 17:52:31 schrieb william.croc...@analog.com: > I will use cmake to build the app on my various platforms > (Linux/Windows...). Most of my convenience targets are only used during > development (Linux) so it is typically okay that they are not cross > platform. That you

Re: [CMake] How to rename the resulting Makefile.

2010-10-12 Thread Bill Hoffman
On 10/12/2010 11:52 AM, william.croc...@analog.com wrote: [ elided ] So, is there a command I can place in my CMakeLists.txt files which will cause them to produce a file named xyz.make (let's say) instead of Makefile. [ elided ] I still think Qt/qmake was right in providing the ability to

Re: [CMake] How to rename the resulting Makefile.

2010-10-12 Thread Eric Noulard
2010/10/12 william.croc...@analog.com : > > I will use cmake to build the app on my various platforms > (Linux/Windows...). > Most of my convenience targets are only used during development (Linux) > so it is typically okay that they are not cross platform. ACK. >> >> file( ...) commands >> >

Re: [CMake] How to rename the resulting Makefile.

2010-10-12 Thread william.croc...@analog.com
[ elided ] So, is there a command I can place in my CMakeLists.txt files which will cause them to produce a file named xyz.make (let's say) instead of Makefile. [ elided ] I still think Qt/qmake was right in providing the ability to change the name of the Makefile. Before I discovered that,

Re: [CMake] How to rename the resulting Makefile.

2010-10-12 Thread Bill Hoffman
On 10/12/2010 11:14 AM, william.croc...@analog.com wrote: [ elided ] So, is there a command I can place in my CMakeLists.txt files which will cause them to produce a file named xyz.make (let's say) instead of Makefile. Thanks in advance. Use out of source builds, and there should be no-con

Re: [CMake] How to rename the resulting Makefile.

2010-10-12 Thread Eric Noulard
2010/10/12 william.croc...@analog.com : > >>> >>> [ elided ] >>> >>> So, is there a command I can place in my CMakeLists.txt files >>> which will cause them to produce a file named xyz.make (let's say) >>> instead of Makefile. >>> >>> Thanks in advance. >> >> Use out of source builds, and there sho

Re: [CMake] How to rename the resulting Makefile.

2010-10-12 Thread william.croc...@analog.com
[ elided ] So, is there a command I can place in my CMakeLists.txt files which will cause them to produce a file named xyz.make (let's say) instead of Makefile. Thanks in advance. Use out of source builds, and there should be no-conflict. There is no way to rename the makefiles. mkdir b

Re: [CMake] Reusing configuration

2010-10-12 Thread Fred Fred
Ok but it means that you have to include directories from the source distrib as well as directories from the binary distrib. Hence I do no longer see what is the purpose of the development binary distribution. > From: mike.jack...@bluequartz.net > To: cmake@cmake.org > Date: Tue, 12 Oct 2010 10

Re: [CMake] How to rename the resulting Makefile.

2010-10-12 Thread Bill Hoffman
On 10/12/2010 10:17 AM, william.croc...@analog.com wrote: Hello: I'm a newbie cmake user and would like to rename the makefile produced by running cmake. I have searched the doc, mailinglist-archive and web, but to no avail. This is useful because: 1 - It provides a convenient way to slowly t

Re: [CMake] How to rename the resulting Makefile.

2010-10-12 Thread Eric Noulard
2010/10/12 william.croc...@analog.com : > Hello: > > I'm a newbie cmake user and would like to rename the makefile > produced by running cmake. As far as I know there is none. But... may be you could do a out-of-source build http://www.cmake.org/Wiki/CMake_FAQ#Out-of-source_build_trees and avoid t

[CMake] How to rename the resulting Makefile.

2010-10-12 Thread william.croc...@analog.com
Hello: I'm a newbie cmake user and would like to rename the makefile produced by running cmake. I have searched the doc, mailinglist-archive and web, but to no avail. This is useful because: 1 - It provides a convenient way to slowly transition form existing makefiles to the use of cmake.

Re: [CMake] Adding a library to link in during TRY_RUN with Windows/nmake?

2010-10-12 Thread Eric Noulard
2010/10/12 Clifford Yapp : > I'm trying to compile some C code using TRY_RUN that uses gethostname, > but in order for this code to succeed on Windows it needs "/link > ws2_32.lib" added to the compile line.  I have tried putting this > string into the ARGS variable of TRY_RUN and a couple of CMake

Re: [CMake] Reusing configuration

2010-10-12 Thread Michael Jackson
I usually have something along these lines in my ParaView Plugins CMake files: # INCLUDE_DIRECTORIES( ${VTK_INCLUDE_DIR} ${ParaView_SOURCE_DIR}/Utilities/VTKClientServer ${ParaView_BIN

Re: [CMake] Reusing configuration

2010-10-12 Thread Fred Fred
Actually the file is included: find /ParaView-3.8.1/VTK -name vtkMarchingCubesCases.h /ParaView-3.8.1/VTK/Filtering/vtkMarchingCubesCases.h this is why I think the problem comes from how cmake build makefiles since the last line should indicate it where to find the header files: INCLUDE_DIREC

[CMake] Adding a library to link in during TRY_RUN with Windows/nmake?

2010-10-12 Thread Clifford Yapp
I'm trying to compile some C code using TRY_RUN that uses gethostname, but in order for this code to succeed on Windows it needs "/link ws2_32.lib" added to the compile line. I have tried putting this string into the ARGS variable of TRY_RUN and a couple of CMake variables, but the compile still f

Re: [CMake] custom commands not run in parallel with Visual Studio (2010) generator

2010-10-12 Thread Bill Hoffman
On 10/12/2010 9:09 AM, Thomas Sondergaard wrote: Hi, I've noticed that Visual Studio doesn't run custom commands added with add_custom_command in parallel. This means running moc and uic is slow on Windows. Is there something that can be done about this? No, I don't think so, VS does not work

Re: [CMake] *.c compiled with C compiler after clearing CMAKE_C_SOURCE_FILE_EXTENSIONS

2010-10-12 Thread Jed Brown
On Tue, Oct 12, 2010 at 15:33, Michael Wild wrote: > set(SRCS src1.c src2.c src3.c) > set_source_files_properties(${SRCS} PROPERTIES LANGUAGE CXX) > add_executable(strange_beast ${SRCS}) > I can do that, but what's the point of the extension-based mapping if you have to set properties by file?

Re: [CMake] *.c compiled with C compiler after clearing CMAKE_C_SOURCE_FILE_EXTENSIONS

2010-10-12 Thread Michael Wild
On 12. Oct, 2010, at 15:26 , Jed Brown wrote: > I realize this may look silly, but after > > list (REMOVE_ITEM CMAKE_C_SOURCE_FILE_EXTENSIONS c) > list (APPEND CMAKE_CXX_SOURCE_FILE_EXTENSIONS c) > > source files matching *.c are still compiled with the C compiler (not C++). > Is there a way

Re: [CMake] *.c compiled with C compiler after clearing CMAKE_C_SOURCE_FILE_EXTENSIONS

2010-10-12 Thread Michael Hertling
On 10/12/2010 03:26 PM, Jed Brown wrote: > I realize this may look silly, but after > > list (REMOVE_ITEM CMAKE_C_SOURCE_FILE_EXTENSIONS c) > list (APPEND CMAKE_CXX_SOURCE_FILE_EXTENSIONS c) > > source files matching *.c are still compiled with the C compiler (not C++). > Is there a way to g

[CMake] *.c compiled with C compiler after clearing CMAKE_C_SOURCE_FILE_EXTENSIONS

2010-10-12 Thread Jed Brown
I realize this may look silly, but after list (REMOVE_ITEM CMAKE_C_SOURCE_FILE_EXTENSIONS c) list (APPEND CMAKE_CXX_SOURCE_FILE_EXTENSIONS c) source files matching *.c are still compiled with the C compiler (not C++). Is there a way to get *.c compiled with the C++ compiler? (cmake-2.8.2)

[CMake] custom commands not run in parallel with Visual Studio (2010) generator

2010-10-12 Thread Thomas Sondergaard
Hi, I've noticed that Visual Studio doesn't run custom commands added with add_custom_command in parallel. This means running moc and uic is slow on Windows. Is there something that can be done about this? Thanks, Thomas ___ Powered by www.kitware

Re: [CMake] How to compile as "release" with /MT /GS in cmake?

2010-10-12 Thread Daniel Franke
On Tuesday, October 12, 2010, John Drescher wrote: > On Tue, Oct 12, 2010 at 8:58 AM, Mr Shore wrote: > > Can I restrict the scope so that this setting is only for one specific > > target? > > If the targets are all in 1 CMakeLists.txt I am not sure how to do > that. I am not saying its not possi

Re: [CMake] How to compile as "release" with /MT /GS in cmake?

2010-10-12 Thread John Drescher
On Tue, Oct 12, 2010 at 8:58 AM, Mr Shore wrote: > Hi John > > Can I restrict the scope so that this setting is only for one specific > target? > If the targets are in their own subdirectory yes. Just set the variable in the CMakeLists.txt file in that target after all add_subdirectory lines so i

Re: [CMake] How to compile as "release" with /MT /GS in cmake?

2010-10-12 Thread John Drescher
On Tue, Oct 12, 2010 at 8:06 AM, Mr Shore wrote: > I'm using cl.exe if that matters,thanks in advance! > CMAKE_CXX_FLAGS_RELEASE is the variable you want. I believe this will do what you want: SET(CMAKE_CXX_FLAGS_RELEASE "/MT /GS" ) John ___ Powered

Re: [CMake] CMake rebuilding too much

2010-10-12 Thread Thomas Sondergaard
On 12-10-2010 13:24, Michael Wild wrote: The FORCE is OK, but you should do this only once, and only if CMAKE_CXX_FLAGS is the default. You don't want to upset your users, do you? Something like this should do: if(CMAKE_COMPILER_IS_GNUCXX AND NOT __CHECKED_CXX_FLAGS) # this is the guard so

[CMake] How to compile as "release" with /MT /GS in cmake?

2010-10-12 Thread Mr Shore
I'm using cl.exe if that matters,thanks in advance! ___ 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

Re: [CMake] Reusing configuration

2010-10-12 Thread Michael Wild
You'll have to ask on the ParaView list as to why this file isn't included in the development package. I'm pretty sure this is a bug. Michael On 12. Oct, 2010, at 9:42 , Fred Fred wrote: > > I still have a problem. > Now my CMakeFiles.txt looks like this: > > SET(ParaView_DIR /ParaView-Devel

Re: [CMake] CMake rebuilding too much

2010-10-12 Thread Michael Wild
On 12. Oct, 2010, at 13:07 , Thomas Sondergaard wrote: > On 07-10-2010 14:46, Bill Hoffman wrote: > >> You are going to have to give more information or a small example that >> shows the problem. It should not be doing that. You could try running >> make -d to figure out why make is thinking it

Re: [CMake] CMake rebuilding too much

2010-10-12 Thread Thomas Sondergaard
On 07-10-2010 14:46, Bill Hoffman wrote: You are going to have to give more information or a small example that shows the problem. It should not be doing that. You could try running make -d to figure out why make is thinking it needs to do that. -Bill I found the problem. I had the following

Re: [CMake] Reusing configuration

2010-10-12 Thread Fred Fred
I still have a problem. Now my CMakeFiles.txt looks like this: SET(ParaView_DIR /ParaView-Development-3.8.1-Linux-i686/lib/paraview-3.8) FIND_PACKAGE(ParaView REQUIRED) INCLUDE(${PARAVIEW_USE_FILE}) ADD_PARAVIEW_PLUGIN(MyPlugin "1.0" SERVER_MANAGER_XML MyPlugin.xml