Re: [CMake] assembly files with masm in vs2005 64bit

2008-10-27 Thread Bram de Greve
Hi Alexander, Thanks for your quick response! 2008/10/24 Alexander Neundorf [EMAIL PROTECTED] On Friday 24 October 2008, Alexander Neundorf wrote: Yes, I think you're the first one who tries that. Alright! =) This is the custom build step I need to perform (copy pasted from a

[CMake] Does CMAKE_DEBUG_POSTFIX not affect executables?

2008-10-27 Thread Christian Ehrlicher
Hi, Looks like CMAKE_DEBUG_POSTFIX does not affect executables anymore: 8-- set(CMAKE_DEBUG_POSTFIX d) add_executable(test main.cpp) #set_target_properties(test PROPERTIES DEBUG_POSTFIX d) get_target_property(dbg_location test DEBUG_LOCATION)

[CMake] get_target_property(...LOCATION) does not handle DEBUG_POSTFIX in vcproj mode

2008-10-27 Thread Christian Ehrlicher
Hi, When creating a VisualStudio project, get_target_property(...LOCATION) does not handle DEBUG_POSTFIX correct. I always get the target name without the debug postfix. I need to do some post build steps but due to the wrong targetname it's currently impossible... so is this a bug or a known

Re: [CMake] Does CMAKE_DEBUG_POSTFIX not affect executables?

2008-10-27 Thread Michael Jackson
I use something like the following: #-- Set the Debug and Release names for the libraries SET_TARGET_PROPERTIES( ${exe_name} PROPERTIES DEBUG_OUTPUT_NAME ${exe_debug_name} RELEASE_OUTPUT_NAME ${exe_release_name} ) _ Mike

[CMake] CMake problem on Solaris with suncc

2008-10-27 Thread Gerhard Gappmeier
Hi all, I try to build my program with cmake on Solaris using cc (suncc). The problem is when activating -xtarget=ultra -xarch=v9 I get linker errors wrong ELF class: ELFCLASS64. I created a simple hello world example to reproduce the problem. It consists of a simple hello-library and a test

[CMake] howto INSTALL PDB files

2008-10-27 Thread Gerhard Gappmeier
Hi, INSTALL(TARGETS ...) doesn't copy the pdb files with debug information (Visual Studio/Windows) along with the executable. Is there a cmake option to change this, or do I need to create a manual install rule for that? -- mit freundlichen Grüßen / best regards Gerhard Gappmeier ascolab

Re: [CMake] CMake problem on Solaris with suncc

2008-10-27 Thread cyril_wobow
Here is the environment I enforce on solaris to build with cmake/solaris/suncc64 : export LINKFLAGS=-m64 ; export CFLAGS=-m64 ; export CPPFLAGS=-m64; export CC=/opt/SUNWspro/bin/suncc ; export CPP=/opt/SUNWspro/bin/suncc; export CXX=/opt/SUNWspro/bin/sunCC Hope this helps ! Cyril Gerhard

Re: [CMake] CMake problem on Solaris with suncc

2008-10-27 Thread Bill Hoffman
cyril_wobow wrote: Here is the environment I enforce on solaris to build with cmake/solaris/suncc64 : export LINKFLAGS=-m64 ; export CFLAGS=-m64 ; export CPPFLAGS=-m64; export CC=/opt/SUNWspro/bin/suncc ; export CPP=/opt/SUNWspro/bin/suncc; export CXX=/opt/SUNWspro/bin/sunCC Hope this

Re: [CMake] CMake problem on Solaris with suncc

2008-10-27 Thread Gerhard Gappmeier
Hi this was a good tip to configure the compiler using the environment variables. I just changed -m64 to the old xtarget settings, because this is to new for my compiler. I removed all compiler settings from the CMakeLists.txt and now it seems to work, except from the assembler. Now I'm using

[CMake] problem to install CMake with VTK_WRAP_JAVA ON

2008-10-27 Thread Stéphane CALANDE
Hi, I'm trying to compile VTK 5.2 with VTK_WRAP_JAVA ON. I generate the makefile with CMake, but when I compile, I have an error at 43% of the installation. Linking CXX shared library ../bin/libvtkRenderingJava.dll Creating library file: ../bin/libvtkRenderingJava.dll.a

Re: [CMake] CMake problem on Solaris with suncc

2008-10-27 Thread Hendrik Sattler
Bill Hoffman schrieb: You have to start with an empty cache. Re-run cmake with no CMakeCache.txt. Then make sure the CMAKE_C_FLAGS are correct. Shouldn't that be CMAKE_ASM_FLAGS if the .s file has the language property set to ASM? HS ___ CMake

Re: [CMake] CMake problem on Solaris with suncc

2008-10-27 Thread Gerhard Gappmeier
Hi, CMakeCache.txt is not the problem. I do out-of-source builds and completely remove the build folder before each build CMAKE_ASM_FLAGS sounds good and I found some references in the internet about it. But this seems not to be used anymore. If you do a grep in cmake/Modules for ASMFLAGS or

Re: [CMake] problem to install CMake with VTK_WRAP_JAVA ON

2008-10-27 Thread Mathieu Malaterre
On Mon, Oct 27, 2008 at 3:30 PM, Stéphane CALANDE [EMAIL PROTECTED] wrote: Hi, I'm trying to compile VTK 5.2 with VTK_WRAP_JAVA ON. I generate the makefile with CMake, but when I compile, I have an error at 43% of the installation. Linking CXX shared library ../bin/libvtkRenderingJava.dll

[CMake] SS12 and -xcode=pic32

2008-10-27 Thread George Neill
Hi All, I am using cmake 2.4.8 and Sun Studio 12. I am trying to overwrite these default cmake compiler settings from Modules/Platorm/SunOS.cmake SET(CMAKE_SHARED_LIBRARY_C_FLAGS -KPIC) SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS -KPIC) to SET(CMAKE_SHARED_LIBRARY_C_FLAGS -xcode=pic32)

Re: [CMake] SS12 and -xcode=pic32

2008-10-27 Thread Alan W. Irwin
On 2008-10-27 12:54-0500 George Neill wrote: Hi All, I am using cmake 2.4.8 and Sun Studio 12. I am trying to overwrite these default cmake compiler settings from Modules/Platorm/SunOS.cmake SET(CMAKE_SHARED_LIBRARY_C_FLAGS -KPIC) SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS -KPIC) to

Re: [CMake] SS12 and -xcode=pic32

2008-10-27 Thread George Neill
Alan, On Mon, Oct 27, 2008 at 3:10 PM, Alan W. Irwin [EMAIL PROTECTED] wrote: On 2008-10-27 12:54-0500 George Neill wrote: Hi All, I am using cmake 2.4.8 and Sun Studio 12. I am trying to overwrite these default cmake compiler settings from Modules/Platorm/SunOS.cmake

Re: [CMake] SS12 and -xcode=pic32

2008-10-27 Thread Bill Hoffman
George Neill wrote: Alan, On Mon, Oct 27, 2008 at 3:10 PM, Alan W. Irwin [EMAIL PROTECTED] wrote: On 2008-10-27 12:54-0500 George Neill wrote: Hi All, I am using cmake 2.4.8 and Sun Studio 12. I am trying to overwrite these default cmake compiler settings from Modules/Platorm/SunOS.cmake

Re: [CMake] SS12 and -xcode=pic32

2008-10-27 Thread George Neill
On Mon, Oct 27, 2008 at 3:33 PM, Bill Hoffman [EMAIL PROTECTED] wrote: George Neill wrote: Alan, On Mon, Oct 27, 2008 at 3:10 PM, Alan W. Irwin [EMAIL PROTECTED] wrote: On 2008-10-27 12:54-0500 George Neill wrote: Hi All, I am using cmake 2.4.8 and Sun Studio 12. I am trying to

Re: [CMake] SS12 and -xcode=pic32

2008-10-27 Thread Bill Hoffman
George Neill wrote: Setting these in the right place should work. project(foo) set(CMAKE_SHARED_LIBRARY_C_FLAGS -xcode=pic32) add_library(foo SHARED foo.c) I believe this is my issue, I am setting the variable before I issue the PROJECT command. I have created my own CMAKE_BUILD_TYPE's

Re: [CMake] assembly files with masm in vs2005 64bit

2008-10-27 Thread Alexander Neundorf
Hi Bram, On Monday 27 October 2008, Bram de Greve wrote: Hi Alexander, ... - Then it dawned to me that there were other places to replace -MASM by _MASM: in enable_language, when setting the asm file's language property, and also in the filenames of the cmake files you gave me. - Now, build

Re: [CMake] SS12 and -xcode=pic32

2008-10-27 Thread George Neill
Bill, On Mon, Oct 27, 2008 at 3:55 PM, Bill Hoffman [EMAIL PROTECTED] wrote: George Neill wrote: Setting these in the right place should work. project(foo) set(CMAKE_SHARED_LIBRARY_C_FLAGS -xcode=pic32) add_library(foo SHARED foo.c) I believe this is my issue, I am setting the variable

[CMake] Fortran to C mapping module

2008-10-27 Thread Bill Hoffman
I have just checked in a module to help with the linking of Fortran from C. I would appreciate some feedback, and perhaps some testing with different Fortran compilers. Does anyone know of a web site that lists different Fortran compiler name mangling schemes? The module is here:

Re: [CMake] Fortran to C mapping module

2008-10-27 Thread George Neill
Bill, On Mon, Oct 27, 2008 at 8:46 PM, Bill Hoffman [EMAIL PROTECTED] wrote: I have just checked in a module to help with the linking of Fortran from C. I would appreciate some feedback, and perhaps some testing with different Fortran compilers. Does anyone know of a web site that lists

Re: [CMake] Fortran to C mapping module

2008-10-27 Thread Bill Hoffman
George Neill wrote: Bill, On Mon, Oct 27, 2008 at 8:46 PM, Bill Hoffman [EMAIL PROTECTED] wrote: I have just checked in a module to help with the linking of Fortran from C. I would appreciate some feedback, and perhaps some testing with different Fortran compilers. Does anyone know of a web