Re: [CMake] import library

2009-06-12 Thread Bill Hoffman
Leon Aronson (DT) wrote: Hi I have moved a Visual C++ 2008 solution to cmake. Before the move, there was no import library in the linker/advanced setting. However, CMake generates the setting like this: Import Library = C:\mecan\mecan_build\MeCan\Release\mecan.lib When building the

Re: [CMake] Linux In-the-source Build multiple modes without swithing

2009-06-17 Thread Bill Hoffman
Charlie Sun wrote: Hi, I'm trying to do a linux build with both release and debug mode. In stead of builing out of source as indicated on the FAQ 4.15, I really need to do in the source build. currently, if I do a release build and then a debug build and then another release build. It will

Re: [CMake] cmake 2.6.4 bootstrap failure x86_64

2009-06-19 Thread Bill Hoffman
James Yoo wrote: Hi, I'm sure this question has been answered before, but I really did try to find the answer via yabingle and was utterly unsuccessful... so let me apologize in advance. I've never used cmake before but I need to install it so that I can install Mayavi via VTK. Do

Re: [CMake] Linux In-the-source Build multiple modes without swithing

2009-06-19 Thread Bill Hoffman
Charlie Sun wrote: Because I would need to run the test using ctest, and the test cases have hard-coded and relative paths configured. If i do an out-of-source build. Some test cases would fail. I am also building the project on windows Visual studio, which does not have the problem with

Re: [CMake] cmake 2.6.4 bootstrap failure x86_64

2009-06-19 Thread Bill Hoffman
James Yoo wrote: awesome, that got me past the bootstrap... how do I get it to find my ncurses headers and stuff? I've tried editing CMakeCache.txt, which seems to get it past the configure stage, but make dies... You need to install the developer version of curses on the machine.

Re: [CMake] cmake 2.6.4 bootstrap failure x86_64

2009-06-19 Thread Bill Hoffman
James Yoo wrote: I thought I had installed the dev version of ncurses.. which is why I had to put the headers and libs in a non-standard location in anycase, if you think I can just use the 32bit bin to compile packages on a 64bit machine I will give that a try. What linux distro are

Re: [CMake] Object files as targets (or add_object)

2009-06-20 Thread Bill Hoffman
Henrique Almeida wrote: Do CMake developers read the mailing list ? No. :) 2009/6/18 Henrique Almeida hda...@gmail.com: Hello, I'm working on a cross platform libc implementation that uses CMake for the building process. I've noticed that CMake doesn't currently support adding non

Re: [CMake] Linux In-the-source Build multiple modes without swithing

2009-06-22 Thread Bill Hoffman
Jesper Eskilson wrote: - Be able to do make {Debug|Release|...}. - Be able to use the same infrastructure for running cmake both on Unix and Windows. I currently have to maintain two different ways of running cmake: one for single-config build directories, and another for multiple-config

Re: [CMake] Cmake C compiler detection broken in some cases

2009-06-22 Thread Bill Hoffman
Hendrik Sattler wrote: Am Montag 22 Juni 2009 07:54:38 schrieb Hendrik Sattler: Same game for C++ compiler. I must correct myself: work for C++. \ $ cvs commit -m BUG: remove warning in test of compiler so -Werror does not fail CMakeTestCCompiler.cmake Committer: Bill Hoffman bill.hoff

Re: [CMake] Why does Cmake never add libs when it comes to static linking?

2009-06-22 Thread Bill Hoffman
ariasg...@gmx.de wrote: Hello, I have some code that uses some libs in the following defined vars: # - # Add everything into executable # -

Re: [CMake] Cannot compile simple example using cmake and xcode (linker problem)

2009-06-23 Thread Bill Hoffman
Pim Schellart wrote: Hello Everyone, I tried removing and reinstalling Xcode using (sudo /Developer/Library/uninstall-devtools --mode=all) which also removes and reinstalls gcc. This does not solve the problem. In fact cmake -G Xcode now fails with the following: You might want to make sure

Re: [CMake] Boost on Windows

2009-06-23 Thread Bill Hoffman
Christopher Harvey wrote: define BOOST_ROOT and point it at the root install location for boost. I had the same problem, that fixed it. I only had to do that on windows. There seems to be a bug in the FindBoost, BOOST_ROOT should not be required. I got it to work by adding this:

Re: [CMake] IBM Fortran and the C Preprocessor

2009-06-24 Thread Bill Hoffman
Will Dicharry wrote: We do this because we need a quick way to choose our compiler (cmake chooses GNU on this system by default, and we have to use an MPI wrapper compiler) and because we want those particular Fortran flags when the MPI wrapper compiler is being used. When I use this

Re: [CMake] add_library/add_executable ordering

2009-06-24 Thread Bill Hoffman
Tyler Roscoe wrote: On Wed, Jun 24, 2009 at 03:30:33PM -0700, Hai Nguyen wrote: add_library( libB ... ) add_executable( ExecB ... ) target_link_libraries( ExecB libB ) but the build order now is: ExecB, libB I'm getting link errors because libB doesn't exist yet. If I comment out the ExecB

Re: [CMake] Question about CMake and NMake generation

2009-06-25 Thread Bill Hoffman
Robert Dailey wrote: Thanks for this information. Was this documented somewhere publicly? http://www.cmake.org/cmake/help/cmake2.6docs.html#variable:CMAKE_BUILD_TYPE -Bill ___ Powered by www.kitware.com Visit other Kitware open-source projects

Re: [CMake] Emacs: Addition to cmake-model.el to show cmake documentation

2009-06-26 Thread Bill Hoffman
James Bigler wrote: On Wed, Apr 29, 2009 at 11:43 AM, Bill Hoffmanbill.hoff...@kitware.com wrote: James Bigler wrote: Thanks for the suggestion. word-at-point works better than my hand rolled code. Here's the updated version. I also fixed a slight annoyance where if the help command output

Re: [CMake] Problem when launching ccmake 2.6.4

2009-06-26 Thread Bill Hoffman
Renato Elias wrote: -- Forwarded message -- From: *Renato Elias* rnel...@gmail.com mailto:rnel...@gmail.com Date: Fri, Jun 26, 2009 at 11:17 AM Subject: Problem when launching ccmake 2.6.4 To: cmake@cmake.org mailto:cmake@cmake.org Folks, I've just downloaded and compiled

Re: [CMake] Problem when launching ccmake 2.6.4

2009-06-26 Thread Bill Hoffman
Bill Hoffman wrote: Renato Elias wrote: -- Forwarded message -- From: *Renato Elias* rnel...@gmail.com mailto:rnel...@gmail.com Date: Fri, Jun 26, 2009 at 11:17 AM Subject: Problem when launching ccmake 2.6.4 To: cmake@cmake.org mailto:cmake@cmake.org Folks, I've just

Re: [CMake] Problem when launching ccmake 2.6.4

2009-06-27 Thread Bill Hoffman
the same error message Could you give me any basic direction with gdb? Moreover, is cmake compiled with debug symbols? (I guess not, otherwise the error message would be less polite) Renato. On Fri, Jun 26, 2009 at 11:54 AM, Bill Hoffman bill.hoff...@kitware.com mailto:bill.hoff...@kitware.com wrote

Re: [CMake] CMakeLists.txt?

2009-06-28 Thread Bill Hoffman
Robert Dailey wrote: Just curious about how you guys came up with the name 'CMakeLists.txt'. While I've grown to accept it, I still can't say I really understand the meaning of the name. Something that would make sense to me is CMakeScript.txt or CMakeFile. I am especially curious as to why

Re: [CMake] cmake 2.6.4 / Free VC Toolkit 2003 / XPSP2 PSDK

2009-06-29 Thread Bill Hoffman
Mathieu Malaterre wrote: My project is: project(foo C CXX) I do not see why it should load any fortran thingy at any point in time... And yes I configured using -G NMake Makefiles thx Can you run with cmake -GNMake Makefiles --trace? Then maybe we can figure out why it is trying to use

Re: [CMake] Visual Studio 2005 forgets to add externally generated objects to link line

2009-06-30 Thread Bill Hoffman
James Bigler wrote: I have a project that generates object files as part of the compilation. I add the object names to the project with ${CMAKE_CFG_INTDIR} in the file name and they show up in the solution explorer (which is what I would expect). VS seems to do the right thing most of the

Re: [CMake] Re-defining CMAKE_CXX_FLAGS with /TP for cl.exe

2009-06-30 Thread Bill Hoffman
Knox, Kent wrote: I've just stumbled across some surprising cl.exe behavior, and I would like to see if the collective minds of this dist list has come across this before. In my c++ project, I override CMAKE_CXX_FLAGS with my own flags, including /TP. Using an nmake based build, this causes

Re: [CMake] make - cannot open output file . (dot)

2009-07-04 Thread Bill Hoffman
t...@unforbidable.com wrote: So I tried to set EXECUTABLE_OUTPUT_PATH to the same path as PROJECT_BINARY_DIR like so: SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR} CACHE PATH Single output directory for building all executables. FORCE) This works on Windows (nmake makefiles) but when using

Re: [CMake] make - cannot open output file . (dot)

2009-07-05 Thread Bill Hoffman
t...@unforbidable.com wrote: t...@unforbidable.com wrote: So I tried to set EXECUTABLE_OUTPUT_PATH to the same path as PROJECT_BINARY_DIR like so: SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR} CACHE PATH Single output directory for building all executables. FORCE) This works on Windows

Re: [CMake] Invitation to connect on LinkedIn

2009-07-07 Thread Bill Hoffman
Matthew J Smith wrote: Hmmm ... so LinkedIn is a Kitware project now? Yea, CLinkedIn :) -Bill ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages

Re: [CMake] How to avoid -${MAKEFLAGS} in the CMAKE generated Makefiles ?

2009-07-07 Thread Bill Hoffman
Xiangyun Kong wrote: I am getting some problems in using CMAKE on windows. With CMAKE generated Makefiles, when I use gnu make, I am getting the following errors, NMAKE : fatal error U1065: invalid option '-' It seems the -$(MAKEFLAGS) on the Make command options lead to the problem. The

Re: [CMake] How to avoid -${MAKEFLAGS} in the CMAKE generated Makefiles ?

2009-07-08 Thread Bill Hoffman
Xiangyun Kong wrote: Thanks. I am not sure how to ask CMAKE create unix makefiles on windows. cmake -GUnix Makefiles or when you run cmake-gui select Unix Makefiles. You must be selecting NMake Makefiles somehow, so you do the same thing... -Bill

Re: [CMake] itk configuration issue jar not created

2009-07-08 Thread Bill Hoffman
neel vinoth wrote: Hi, Document available in net :GS-Java_Wrapping_in_ITK_VTK-v2.2.pdf Except Cmake version and visual studio version other files used as per the document. cmake-2.6.4-win32-x86.exe Visual Studio 6. Vtk compilation everythg ok Itk build failed with following error.

Re: [CMake] CMAKE_OSX_SYSROOT being ignored?

2009-07-10 Thread Bill Hoffman
Kenneth Riddile wrote: Hi, I'm using CMake 2.6.4 to generate xcode projects for iphone apps. I have nearly everything working, except that my specified setting for CMAKE_OSX_SYSROOT is being ignored in favor of the Current OS setting. I am specifying it like this: set(CMAKE_OSX_ROOT

Re: [CMake] VS2010 support

2009-07-10 Thread Bill Hoffman
CVS CMake has initial VS 2010 support. Currently the following tests are failing: 45 - Preprocess (Failed) 56 - CustomCommand (Failed) 69 - ExternalProject (Failed) 92 - PrecompiledHeader (Failed) 93 - VSExternalInclude (Failed) If anyone wants

Re: [CMake] VS2010 support

2009-07-10 Thread Bill Hoffman
Bill Hoffman wrote: CVS CMake has initial VS 2010 support. Currently the following tests are failing: 45 - Preprocess (Failed) 56 - CustomCommand (Failed) 69 - ExternalProject (Failed) 92 - PrecompiledHeader (Failed) 93 - VSExternalInclude (Failed

Re: [CMake] CTest and CPU core utilization

2009-07-10 Thread Bill Hoffman
Sean McBride wrote: Hi all, Let's say I have: - an 8 core machine - hundreds of (slow) unit tests - most unit test are single threaded Is there a way to make ctest run tests in palallel? My CPUs are vastly under utilized. Thanks, There is a beta ctest -j N functionality in CVS. It does

Re: [CMake] CTest and CPU core utilization

2009-07-10 Thread Bill Hoffman
Sean McBride wrote: There is a beta ctest -j N functionality in CVS. Great! Does 'N' instruct it to run 'N' tests in parallel? Yes. If the tests depend on each other, you have to add some extra test properties to let ctest know about that. Do you know if CMake itself, VTK, and ITK

Re: [CMake] CTest and CPU core utilization

2009-07-10 Thread Bill Hoffman
Sean McBride wrote: On 7/10/09 2:07 PM, Bill Hoffman said: There is a beta ctest -j N functionality in CVS. Great! Does 'N' instruct it to run 'N' tests in parallel? Yes. Any plans to go even further? It's hard to choose 'N'. Some test may create many threads and some may create none

Re: [CMake] testing with standard output

2009-07-14 Thread Bill Hoffman
Henrique Almeida wrote: Hello, When running make test, some of my unit tests require that the result is given by a correct output, instead of (just) the correct return value (because, I'm specifically testing the ability to do output). Is there a way to configure CTest to report a successful

Re: [CMake] Build Dependencies problem

2009-07-14 Thread Bill Hoffman
Eric Tellefsen wrote: Hi, I'm new to the list and relatively new to CMake. I'm currently in the process of attempting to migrate an existing project to CMake (from plain Unix makefiles) The source files for each library are in a series of subdirectories as illustrated in the simple

Re: [CMake] Equivalent to VERBOSE for nmake

2009-07-15 Thread Bill Hoffman
Michael Jackson wrote: Is there an equivalent to make VERBOSE=1 but for nmake files under windows? nmake VERBOSE=1. However, to get all the compile lines, you have to edit Platforms/Windows.cmake. # uncomment these out to debug nmake and borland makefiles #SET(CMAKE_START_TEMP_FILE )

Re: [CMake] Equivalent to VERBOSE for nmake

2009-07-15 Thread Bill Hoffman
Michael Jackson wrote: -Bill If I go editing Windows.cmake what ramifications will that have on generating normal Visual Studio project files? It will not affect Visual Studio IDE projects, but might break some nmake projects if the command lines get too long. -Bill

Re: [CMake] Processing the output from CMake build

2009-07-15 Thread Bill Hoffman
CVS CMake/CTest has a new wrapper mode that can be used.It is set with CTEST_USE_LAUNCHERS=1. -Bill ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep

Re: [CMake] Processing the output from CMake build

2009-07-15 Thread Bill Hoffman
Eric Noulard wrote: 2009/7/15 Bill Hoffman bill.hoff...@kitware.com: CVS CMake/CTest has a new wrapper mode that can be used.It is set with CTEST_USE_LAUNCHERS=1. I'm not sure to understand that. How can it be used? What does it make? Is there some doc for this ? On the Wiki

Re: [CMake] Shared libraries cannot be found after deploying a CPack package

2009-07-16 Thread Bill Hoffman
Michael Wild wrote: Actually, I'm planning on doing this with the .def files. But then, maintaining them might also become a nightmare. You can generate them if you use dumpbin and some scripting But, it is much easier to just use the declspec stuff -Bill

Re: [CMake] Cmake gui and cli

2009-07-16 Thread Bill Hoffman
David E DeMarle wrote: On Jul 16, 2009, at 10:41 AM, Alin M Elena wrote: Hi cmake-gui is very useful for big projects with many variables to set, but sometimes command line is very necessary, too. Is there a way to generate the command line equivalent of the settings from cmake-gui? I think

Re: [CMake] Cmake gui and cli

2009-07-16 Thread Bill Hoffman
Alin M Elena wrote: I think the previous posts are missing the question I think what is wanted is a way to run cmake-gui pick some options, and then generate a -D command line equivalent to the options that were picked in cmake-gui. This is not possible, and would be difficult to

Re: [CMake] cmake-gui leaves CMAKE_language_COMPILER_WORKS undefined for simple test case and CMake-2.6.4

2009-07-16 Thread Bill Hoffman
Alan W. Irwin wrote: On 2009-07-15 22:54-0600 Clinton Stimpson wrote: I don't have much to say except that ccmake behaves the same as cmake-gui in this case. You can add this at the end to see it. set(MYSTATUS ${CMAKE_CXX_COMPILER_WORKS} CACHE STRING ) Thanks for pointing that out. This

Re: [CMake] problems configuring paraview

2009-07-18 Thread Bill Hoffman
Natalie Happenhofer wrote: Hi! I have checked out the source code of ParaView and am trying to configure it, but I always get the message: ParaView requires an out of source build. Please create a separate binary directory and run CMake there. My source code is in /home/natalie/ParaView3

Re: [CMake] CMake GCC on Windows

2009-07-20 Thread Bill Hoffman
Robert Dailey wrote: Hello, I was wondering if it is possible to generate Visual Studio projects with CMake that utilizes the GCC compiler instead of MSVC? I guess this would technically be considered a cross-compiling setup, right? If this is possible, how could I go about setting this up?

[CMake] OSCON CMake talk

2009-07-20 Thread Bill Hoffman
Hi all, I am heading off to OSCON tomorrow, and will be presenting CMake on Wed (http://www.kitware.com/news/home/browse/238). If anyone attending the conference or is in the area, feel free to send me an email. -Bill -- Bill Hoffman Kitware, Inc. 28 Corporate Drive Clifton Park, NY 12065

Re: [CMake] Factoring out third-party-dependent commands and modules.

2009-07-24 Thread Bill Hoffman
Alpha Omega wrote: Are there any plans to factor language and framework dependent commands out of cmake into plugins ? And modules into separate packages/repository ? To me, the fact that cmake source is infested with toolkit, ide, language names looks quite ugly. What will happen if cmake gains

Re: [CMake] Problems with CMake on 64-bit Vista

2009-07-24 Thread Bill Hoffman
Barry Hathaway wrote: I'm having a couple of problems using CMake on a 64-bit Vista system. The first is using the 32-bit binary download of CMake to build vxl. The vxl build tries a number of times to use TRY_RUN. The try (compile) part works, but the run part always fails with message

Re: [CMake] Problems with CMake on 64-bit Vista

2009-07-24 Thread Bill Hoffman
Barry Hathaway wrote: Bill, Thanks for you reply. I'm not sure what the problem is with the side-by-side stuff. As for building a 64-bit version I get a bunch of syntax errors starting with: 8C:\cmake-2.6.4\Utilities\cmtar\libtar/libtar.h(66) : error C2143: syntax error : missing ')' before

Re: [CMake] CMake list and Single square brackets

2009-07-24 Thread Bill Hoffman
Tyler Roscoe wrote: LENGTH returns the wrong thing whether you have an unclosed open or closed bracket. I agree that this is a bug. Unless one of the developers chimes in, can you open an issue here: http://public.kitware.com/Bug/ Looks like a bug. -Bill

Re: [CMake] GUI or commandline

2009-07-27 Thread Bill Hoffman
Steven Wilson wrote: Is there a programmatic way for a CMakeLists.txt file to determine if it is being processed by the command line cmake or the gui cmake? No, but it should not matter -Bill ___ Powered by www.kitware.com Visit other Kitware

Re: [CMake] Qt, PrivateClass and not fount moc_xxx.cpp

2009-07-29 Thread Bill Hoffman
Michael Jackson wrote: You probably need to add an include_directories() command that points to where ever the moc_XXX.cpp file can be found. More likely the QT4_GENERATE_MOC macro is not being called. It might help if you gave a small example of your CMake code. -Bill

Re: [CMake] Qt, PrivateClass and not fount moc_xxx.cpp

2009-07-29 Thread Bill Hoffman
panter.dsd wrote: CMake does not generate moc_XXX.cpp. When compiling the generated file moc_XXX.cxx, but I need the cpp. I think you might want to not use #include with cpp when using Cmake, and that should fix your problem. qt4_wrap_cpp( MOC_SOURCES ...) will put the list of

Re: [CMake] Set compiler

2009-07-29 Thread Bill Hoffman
David Cole wrote: If you just run cmake inside your msys shell and use -G Unix Makefiles it should all just work... Actually there are specific Msys generators as msys has some different path stuff. MSYS Makefiles or MinGW Makefiles. -Bill ___

Re: [CMake] visual studio parallel build

2009-07-30 Thread Bill Hoffman
j s wrote: To clarify, if my dependencies are properly spelled out correctly for all of my targets, the build order will be handled properly in Visual Studio? Yes, and if you are running it from the command line, you should build the ALL_BUILD target. Then build the RUN_TESTS. Currently,

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] Linker Flag error with SET

2009-08-03 Thread Bill Hoffman
Matthias Noll wrote: Hi all, I have a problem while adding something to the linker command line with cmake. I'm trying to use the set command like this SET(CMAKE_SHARED_LINKER_FLAGS ${CMAKE_MODULE_LINKER_FLAGS} /NODEFAULTLIB:atlthunk ) After generation the value /NODEFAULTLIB:atlthunk is

Re: [CMake] InstallRequiredSystemLibraries.cmake and Redistribution of the shared C runtime component in Visual C++

2009-08-06 Thread Bill Hoffman
James Bigler wrote: I've just been bitten hard by this issue (many hours of frustration while attempting to run a demo application that should have Just Worked (TM) ). According to this page: http://support.microsoft.com/kb/326922 You should install these versions of the CRT on target

Re: [CMake] InstallRequiredSystemLibraries.cmake and Redistribution of the shared C runtime component in Visual C++

2009-08-06 Thread Bill Hoffman
James Bigler wrote: Well, I was using VS 2005 64 bit with SP 1. I wonder if there is a similar bug or if there is something else going wrong such as what Marcus Hanwall described. I am not sure what your issue is, but I know I have done this many times... -Bill

Re: [CMake] Linking against OS X Frameworks

2009-08-07 Thread Bill Hoffman
ML wrote: Hi Michael, I still get the same compile errors as before. But works using Xcode for me. Is there another resource as I can't find an example of these basic things on the wiki. Even Google searching is not really turning up much. I did

Re: [CMake] cmake under OpenBSD: rpath support misconfigured

2009-08-07 Thread Bill Hoffman
Frank Mertens wrote: I'm running OpenBSD on a freshly refurbishes office server. It does currently nothing else than running tests for my inhouse needs. Give me the pointers and I set it up as testing client for cmake, too. Being new to ctest, I skimmed through CMake Testing With CTest and

Re: [CMake] cmake under OpenBSD: rpath support misconfigured

2009-08-07 Thread Bill Hoffman
Frank Mertens wrote: Bill Hoffman wrote: Frank Mertens wrote: I'm running OpenBSD on a freshly refurbishes office server. It does currently nothing else than running tests for my inhouse needs. Give me the pointers and I set it up as testing client for cmake, too. Being new to ctest, I

Re: [CMake] cmake under OpenBSD: rpath support misconfigured

2009-08-07 Thread Bill Hoffman
Frank Mertens wrote: Oh,... well I just run 'make Experimential' on the CVS source an hour ago. It passed all tests! But I fear the dart stuff failed to send a report, got some strange errors about '/proc/cpuinfo' missing. Right OpenBSD has sysctl and no '/proc'. I probably have to stick my

Re: [CMake] configure_file - false vs 0

2009-08-09 Thread Bill Hoffman
James C. Sutherland wrote: #define TEST_VAR_VALUE ${TEST_VAR_VALUE} is what you want. But if I do set( TEST_VAR_VALUE 0 ) then this results in TEST_VAR_VALUE being undefined rather than having the value of 0 as I want. If the value is anything other than zero it works. This is what I

Re: [CMake] .vfproj with cmake

2009-08-14 Thread Bill Hoffman
lokmane.abbas-turki wrote: Hi, I cannot create a Visual Frotran Project using Intel Fortran 11.0 on Visual Studio 9. When I press configure on the CMake GUI I have the following error: CMake Error at C:/PRogram Files/CMake 2.6/share/cmake-2.6/Modules/CMakeTestFortranCompiler.cmake:25

Re: [CMake] linking with .so w/ non-standard names

2009-08-14 Thread Bill Hoffman
Kenneth Chang wrote: Just downloaded 2.6.4, same behavior. Do I have to mark the .so extension so it's recognized as a linkable item? Why not use target_link_libraries with a full path to the .so? -Bill ___ Powered by www.kitware.com Visit other

Re: [CMake] linking with .so w/ non-standard names

2009-08-14 Thread Bill Hoffman
Kenneth Chang wrote: I did, then cmake broke the .so down into its component paths and library name, and used -Lpath -llibname, which caused the linker to look for path/liblibname.so It should not do that in 2.6.4, it should use the full path Do you have any policy warnings, or do you

Re: [CMake] linking with .so w/ non-standard names

2009-08-14 Thread Bill Hoffman
Kenneth Chang wrote: I manufactured a simple setup to demonstrate what I have. I hope this helps. ... Is /home/kchang/sandbox/thost/thostmduserapi.so a valid object? I was able to reproduce what you had if I did this: cmake_minimum_required(VERSION 2.6.4) add_executable(foo foo.c)

Re: [CMake] linking with .so w/ non-standard names

2009-08-17 Thread Bill Hoffman
Kenneth Chang wrote: Hi Bill, I tried the same experiment with a boost .so and it worked. What's interesting is that I can link with thostmduserapi.so if I do it manually or just renamed it, and the application works, so it looks like the file is a valid object. gcc/c++ doesn't complain

Re: [CMake] linking with .so w/ non-standard names

2009-08-17 Thread Bill Hoffman
Kenneth Chang wrote: thx, yes, it's 64-bit linux. So, Brad King is the person who is the expert in the elf linking in CMake, and he is on vacation right now. I did find this comment, which describes pretty much what is going on: From cmComputeLinkInformation.cxx:

Re: [CMake] Config Dependent Link Paths

2009-08-19 Thread Bill Hoffman
aaron.mead...@thomsonreuters.com wrote: I had seen that option, which is for a specific library, I was hoping to just be able to selectively set the library path for a particular configuration. The current configuration relies heavily on #pragma comment(lib,libraryname.lib) to automatically

Re: [CMake] Config Dependent Link Paths

2009-08-19 Thread Bill Hoffman
aaron.mead...@thomsonreuters.com wrote: If I understand correctly, you are talking about linking to build artifacts. Assuming the above is correct, that wouldn't work for the case I have. The libraries I'm linking to are not part of the project. (and many aren't even built by my group.) No,

Re: [CMake] .vfproj with cmake

2009-08-22 Thread Bill Hoffman
lokmane.abbas-turki wrote: Hi, I have already sent this email but I still don't receive an answer. Could you please tell me what should I do to build a simple .vfproj with cmake without a version conflict. CMake does not support this version currently. To fix it temporarily you can

Re: [CMake] XCode automatic dependencies

2009-09-03 Thread Bill Hoffman
Jeroen Dierckx wrote: Hi, We are in the progress of converting our build system(s) to cmake, and we are working on the following platforms: - Windows (VS2008) - Linux (KDevelop) - Mac OSX Snow Leopard (XCode) - iPhone (through XCode) Everything works very good, and I am glad that we took the

Re: [CMake] XCode automatic dependencies

2009-09-03 Thread Bill Hoffman
Jeroen Dierckx wrote: Can you give a small example that shows this issue? Hmm. I just installed the latest version of cmake, which seems to work as expected. I removed the explicit add_dependency lines, and all dependencies are setup correctly, also in XCode. Sorry to bother you... Great,

Re: [CMake] XCode automatic dependencies

2009-09-03 Thread Bill Hoffman
Not yet, but Ogre (http://www.ogre3d.org/) officially supports the iPhone in their new version (available from SVN only for now). They successfully use cmake to generate build environments for all their platforms, including the iPhone. It involves settings some xcode variables, and explicitly

Re: [CMake] cpack install problem

2009-09-03 Thread Bill Hoffman
Dean Inglis wrote: Hi, I originally posted this thread to kwwidgets, but have not had much success and perhaps this is a cpack/cmake issue Im having. I¹m building stand alone applications using VTK, ITK, GDCM, KWWidgets and I I'm recently having problems getting my apps to run on windows

Re: [CMake] cpack install problem

2009-09-03 Thread Bill Hoffman
John Drescher wrote: assembly xmlns=urn:schemas-microsoft-com:asm.v1 manifestVersion=1.0 dependency dependentAssembly assemblyIdentity type=win32 name=Microsoft.VC80.CRT version=8.0.50727.762 processorArchitecture=x86 publicKeyToken=1fc8b3b9a1e18e3b/assemblyIdentity

Re: [CMake] A variable to identify the Dart model type?

2009-09-04 Thread Bill Hoffman
Nathaniel Waisbrot (Cont ARL/CISD) wrote: I have a script, external to the rest of the CMake build, which performs some dashboard submission. I'd like to have it perform that submission *only* when ctest has been invoked as part of 'make (Nightly|Continuous|Experimental)', not 'make' or 'make

Re: [CMake] Deprecated commands -- replacements?

2009-09-04 Thread Bill Hoffman
Doug Hackworth wrote: Our lab has used CMake 2.4 for a long time, and on a new machine I'm trying to use version 2.6 for the first time on some of our projects. Our projects all use VTK and we keep the latest version built (currently 5.4.2). I am getting these CMake errors when I try to

[CMake] macport issue?

2009-09-05 Thread Bill Hoffman
I found this with a google alert: http://www.nabble.com/-MacPorts---21120:-Cmake-fails-to-sync--or-bootstrap--Not-sure-what-it-trying-to-say-sorry.-td25310279.html Is there anyone on this list that is having this problem with CMake? -Bill ___

Re: [CMake] Newbie question: cmake does not have nmake generator

2009-09-09 Thread Bill Hoffman
David Aldrich wrote: Hi I am new to cmake. I have installed cmake (using cmake-2.6.4-win32-x86.exe) on my Win XP platform, on which I also have Visual Studio 2005 Prof and Visual Studio 2008 Express installed. I am trying to build PLplot, whose instructions tell me to run: cmake -G NMake

Re: [CMake] add_subdirectory and build directory

2009-09-11 Thread Bill Hoffman
That's NOT what add_subdirectory is made for. It is intended for adding a sub-directory in the source tree. So, if your directory structure looks like this (i.e. B is a sub-project of A) A/CMakeLists.txt A/B/CMakeLists.txt things are simple: A/CMakeLists.txt: Actually add_subdirectory

Re: [CMake] Problems with CMake on 64-bit Vista

2009-09-14 Thread Bill Hoffman
Tanguy Krotoff wrote: Hi all I have the exact same problem: a message complaining about a bad side-by-side configuration. I have this on a fresh VM with XP 64bits and Visual Studio 2008 SP1. I do have the 32bits debug version of msvcr90d.dll and friends inside

Re: [CMake] Problems with CMake on 64-bit Vista

2009-09-14 Thread Bill Hoffman
Tanguy Krotoff wrote: I see that my statement from my first message is wrong: when I got the side-by-side error message, I was using Visual Studio 2008 WITHOUT SP1 Visual Studio 2008 SP1 solves the problem by installing the right CRT debug files. For sure other people using VS2008 and try_run()

Re: [CMake] linking error after upgrading to snow leopard

2009-09-17 Thread Bill Hoffman
Boudewijn Rempt wrote: Hm, I downgraded from the CVS version to 2.6.4 and the problem doesn't seem to occur, so I suspect a bug in CMake, after all. How can I reproduce this? Can you give a verbose output of the link line with 2.6.4 and with CVS CMake, I would like to figure out the

Re: [CMake] Use FIND_LIBRARY to search link for an executable?

2009-09-18 Thread Bill Hoffman
If the executable exports symbols, it should create an import .lib file, and find_library should be able to find it. You can not link to a .exe file. -Bill ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] [PATCH] CPack fails because of a sharing violation

2009-09-18 Thread Bill Hoffman
Claudio Bley wrote: Hi. Trying to build install Boost I ran into the following error when CPack was called: , | CPack: - Install component: fusion_headers | CMake Error at libs/fusion/cmake_install.cmake:31 (FILE): | file Problem setting modification time on file |

Re: [CMake] cmake 2.6.4 won't find boost 1.40 on windows

2009-09-18 Thread Bill Hoffman
Ingolf Steinbach wrote: 2009/9/18 John Drescher dresche...@gmail.com: It's difficult on windows since there is no standard location for stuff like this. Seconded. What is the FindBoost to do search all paths that are valid for the current user? Nevertheless, there *are* some hard-coded

Re: [CMake] how to completelly remove the /Zm1000 compile option via CMakeLists.txt file

2009-09-22 Thread Bill Hoffman
Tyler Roscoe wrote: On Tue, Sep 22, 2009 at 05:29:07PM +0400, Anatoly Shirokov wrote: How to completelly remove the /Zm1000 compile option via CMakeLists.txt file? We use: string (REPLACE /Zm1000 CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) Just curious as to why this is causing trouble? I

Re: [CMake] multiple cmake files in one directory

2009-09-23 Thread Bill Hoffman
th@gmx.de wrote: hm, right - this would solve my problem, but sadly writing everything in one CMakeLists.txt file was not a clever idea, as the projects should be build independently. Another solution I had (someone posted that) is creating a subdirectory for every project and place the

Re: [CMake] Win32 multi-platform settings

2009-09-23 Thread Bill Hoffman
Steven Wilson wrote: Visual Studio supports having solution files where the solution can set the supported platform to x64 and yet have individual projects in the solution build for the Win32 platform despite having the solution set to x64. Can I configure CMake to set up projects/solutions

Re: [CMake] multiple cmake files in one directory

2009-09-24 Thread Bill Hoffman
th@gmx.de wrote: To make a long story short: What I did is, I write SET (CMAKE_SOURCE_DIR ${CMAKE_SOURCE_DIR}/../..) in the starting CMakeLists.txt in [whatever]/build/project1/ But it looks a bit ugly to me ... -tom This is not nice in my eyes, but it i You should never be setting

[CMake] CMake 2.8.0 RC 1 ready for testing!

2009-09-25 Thread Bill Hoffman
I am happy to announce that CMake 2.8.0 has entered the beta stage! You can find the source and binaries here: http://www.cmake.org/files/v2.8/. I am sure I am leaving something out, but here is the list of changes that I came up with. (If you notice something missing please let me know and I

Re: [CMake] Testing for SSE and adding appropriate Compile options

2009-09-25 Thread Bill Hoffman
Michael Jackson wrote: Does it work if you just drop the quotes from the second half of the set()? set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} /arch:SSE2) or, slightly more pedantically: set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} /arch:SSE2) Nope, this variable is a string and not a list. It has to be

Re: [CMake] CMake 2.8.0 RC 1 ready for testing!

2009-09-25 Thread Bill Hoffman
On Fri, Sep 25, 2009 at 5:31 PM, Pau Garcia i Quiles pgqui...@elpauer.org wrote: Hello, Wow, this is really a surprise. I was not expecting CMake 2.8.0 until at least mid-2010! What's the expected release date for 2.8.0 final ? As soon as the major issues with 2.8.0 rc's are worked out.

Re: [CMake] CMake 2.8.0 RC 1 ready for testing!

2009-09-28 Thread Bill Hoffman
Clinton Stimpson wrote: Where can I find more info on - Fortran/C mixed language projects made much easier. CMake now automatically can compute the run time libraries for a compiler. Does that mean there is a variable I can use instead of manually specifying libgfortran, libg2c and others

Re: [CMake] [v2.8-rc1] does't find freetype on windows

2009-09-28 Thread Bill Hoffman
Christian Ehrlicher wrote: Hi, FiFreetype with 2.8.0-rc1 (and maybe lower) doesn't find freetype on windows because ft2build.h isn't searched inside include/freetype2 Adding 'include/freetype2' to PATH_SUFFIXES in the first FIND_PATH statement solves the problem. Two questions... 1. did

<    4   5   6   7   8   9   10   11   12   13   >