Re: [CMake] Multiple executables sharing object files

2007-12-19 Thread David Cole
Where are these 10 lines? Can you post them here or point to the chicken .cmake source file that contains them? On 12/19/07, Brandon Van Every <[EMAIL PROTECTED]> wrote: > > On Dec 19, 2007 4:24 PM, David Cole <[EMAIL PROTECTED]> wrote: > > On 12/19/07, Brandon Van

Re: [CMake] MSVC turn off RelWithDebInfo and MinSizeRel

2007-12-20 Thread David Cole
rhaul at > some point. Maybe that's already been done for the next major release? > > > > Joe > > > > *From:* [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] *On Behalf Of *Torsten > Martinsen > *Sent:* 20 December 2007 08:11 > *To:* David Cole > *Cc:* c

Re: [CMake] Re: MSVC turn off RelWithDebInfo and MinSizeRel

2007-12-20 Thread David Cole
What do you mean? Do you get an error message? If so, send along the text of the error... Thanks, David Cole On 12/20/07, Fernando Cacciola <[EMAIL PROTECTED]> wrote: > > David Cole wrote: > > >> How about this in the CMakeLists.txt file instead? (Force it into the >

Re: [CMake] XCODE_DEPEND_HELPER dependency issues

2007-12-21 Thread David Cole
What do you mean when you say LIB2 depends on EXE1...? Does EXE1 generate some code that is built into LIB2 or is it something else? Normally libs don't depend on exes in the CMake TARGET sense... On 12/21/07, Nicolas Tisserand <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm working on a C++ project

Re: [CMake] Re: Install of pattern matched files

2007-12-28 Thread David Cole
Can't you use "PATTERN" without the "EXCLUDE" to achieve this? On 12/28/07, Rodolfo Lima <[EMAIL PROTECTED]> wrote: > > Brandon Van Every escreveu: > > > "Too" cumbersome? Surely you jest. What's a long-winded list of > > patterns in terms of your development time? Two minutes tops? > > Oh wel

Re: [CMake] Link commands from nmake

2008-01-04 Thread David Cole
Uncomment the three lines at the bottom of Modules/Platform/Windows.cmake -- grep for CMAKE_START_TEMP_FILE to understand how the response file is constructed... HTH, David On 1/4/08, James Bigler <[EMAIL PROTECTED]> wrote: > > I'm using ICC and nmake to compile some code on Windows XP with the h

Re: [CMake] Link commands from nmake

2008-01-04 Thread David Cole
er <[EMAIL PROTECTED]> wrote: > > Hmm... I uncommented out those lines, but it didn't seem to have an > effect. I even started with a new build directory. > > Was there something else I was supposed to edit? > > James > > On Jan 4, 2008, at 11:03 AM, David Co

Re: [CMake] Running CMake on windows VM

2008-01-08 Thread David Cole
Build the INSTALL target. Right click it and choose "Project Only > Build Only INSTALL" I would install NSIS and build the PACKAGE target to create my own installer. Then the installer can be used on any Windows machine to set it up. On 1/8/08, Jesse Corrington <[EMAIL PROTECTED]> wrote: > > Whe

Re: [CMake] CPack install directory

2008-01-11 Thread David Cole
ll be set to the exact generator being used. The CPACK_PACKAGING_INSTALL_PREFIX is used as the root of the install tree when building the end user installer package. Hope this helps, (sorry it took a while to reply) David Cole On 12/17/07, Raphael Cotty <[EMAIL PROTECTED]> wrote: > >

Re: [CMake] Support for vcbuild in cmake

2008-01-11 Thread David Cole
On 1/10/08, Reggie Burnett <[EMAIL PROTECTED]> wrote: > > Is there support for using vcbuild from the windows sdk with cmake? Not directly, no. AIUI, vcbuild is a tool that supports the vcproj file format but > without having to have visual studio installed. Is there a way to > tell cmake to ge

Re: [CMake] Why is CMakeOutput.log created for one project but not another?

2008-01-14 Thread David Cole
In the CMake source tree, in Utilities/cmcurl/CMakeLists.txt, there is this: CHECK_SYMBOL_EXISTS(strcasecmp"${CURL_INCLUDES}" HAVE_STRCASECMP) That would be one thing that would do it... grep for "strcasecmp" in both source trees. HTH, David On 1/13/08, Christian Convey <[EMAIL PROTECTED]>

Re: [CMake] running FIND_PROGRAM twice

2008-01-14 Thread David Cole
will be attempted again the next time FIND_PROGRAM is invoked with the same variable. The Score: pretty-clear 2 / not-so-clear 0 On 1/14/08, David Cole <[EMAIL PROTECTED]> wrote: > > On 1/14/08, Brandon Van Every <[EMAIL PROTECTED]> wrote: > > > > On Jan

Re: [CMake] running FIND_PROGRAM twice

2008-01-14 Thread David Cole
On 1/14/08, Brandon Van Every <[EMAIL PROTECTED]> wrote: > > On Jan 14, 2008 9:14 PM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > >This is all documented in the find_* commands. > > I don't think the docs are entirely clear about different invocations > of FIND_PROGRAM that use the same variable. C

Re: [CMake] New FindBoost

2008-01-15 Thread David Cole
e to incorporate it directly into FindBoost.cmake if you think it's useful. HTH, David Cole On 1/15/08, Mike Jackson <[EMAIL PROTECTED]> wrote: > > Here is my FindBoost.cmake that I use in my projects. I have tried to > include ideas from FindQt4.cmake and allow for setting t

Re: [CMake] Customizing Test.xml

2008-01-16 Thread David Cole
You could use the same technique found in VTK/Rendering/vtkTesting.cxx. Grep for DartMeasurement and mimic what VTK does when one of its tests results in a DifferenceImage. Anything listed as a DartMeasurement in xml form in your test's output gets transformed to appropriate entries in Test.xml.

Re: [CMake] Using CPack to create multiple packages

2008-01-17 Thread David Cole
I don't have time to help very much right now, but I can point you to this variable: CPACK_INSTALL_CMAKE_PROJECTS grep the CMake source code and read the comments surrounding use of that variable, and see the ParaView3 source tree for one example of its use. It's a list of quadruplets that helps

Re: [CMake] Re: RPATH and $ORIGIN

2008-01-17 Thread David Cole
Did you try "\\\$"? Both $ and \ need escaping inside the CMake set statement so that you end up with "\$" in the variable's value... And if it goes through another round of CMake substitution, you may even need something crazy like: "\\\$" HTH, David On 1/17/08, Iker Arizmendi <[EMAIL PR

Re: [CMake] Why SET() not support regular expression ?

2008-01-18 Thread David Cole
If you do a FILE(GLOB cmake will not detect when files are added to the directory and will *not* re-run automatically. If you explicitly list your files in CMakeLists.txt, then when it changes, cmake re-runs automatically as part of a build. Don't use the FILE(GLOB technique unless you are willing

Re: [CMake] Check directory exists

2008-01-31 Thread David Cole
>From the good old days before IS_DIRECTORY was invented, you can also use a trailing "/" trick (hack?) with EXISTS to see if a directory exists and is a directory... IF(EXISTS "${maybedir}/") with a trailing "/" will return false if ${maybedir} is a file that exists, but true if ${maybedir} is a

Re: [CMake] Win64

2008-02-04 Thread David Cole
CMAKE_CL_64 will be defined if you are running the configure for "NMake Makefiles" from a Win64 Visual Studio command prompt... or if you are running the configure for the "Visual Studio 8 2005 Win64" generator. I suspect you are using the "Visual Studio 8 2005" generator which will always produce

Re: [CMake] can't build CMake CVS

2008-02-15 Thread David Cole
If you comment out (or remove) the line: #define HAVE_COMDEF_H ...from the top of CMake/Source/cmCallVisualStudioMacro.cxx, does the problem go away? On 2/15/08, Brandon Van Every <[EMAIL PROTECTED]> wrote: > > Windows Vista, with the free VC8 compiler, using CMake 2.4.8 as the > build tool, tr

Re: [CMake] can't build CMake CVS

2008-02-15 Thread David Cole
H, David On 2/15/08, Brandon Van Every <[EMAIL PROTECTED]> wrote: > > On Fri, Feb 15, 2008 at 11:04 AM, David Cole <[EMAIL PROTECTED]> > wrote: > > If you comment out (or remove) the line: > > > > #define HAVE_COMDEF_H > > > > ...from the top o

Re: [CMake] parallel builds for ctest

2008-02-15 Thread David Cole
One of the VTK dashboards does it by giving a custom MAKECOMMAND to the initial cache:MAKECOMMAND:STRING=/usr/bin/make -i -j 2 See here for the full script: http://www.vtk.org/Testing/Sites/hythloth.kitware/Linux-gcc41/20080215-0300-Nightly/Notes.html HTH, David On 2/15/08, James Bigler <[EMAI

Re: [CMake] parallel builds for ctest

2008-02-16 Thread David Cole
On 2/15/08, Alan W. Irwin <[EMAIL PROTECTED]> wrote: > > David, I may be leaping to conclusions here, but it appears from what you > have said that it is a reasonable hypothesis that the ctest commmand works > through the cmake generator backend. True When that is "make" (the default for > Unix

Re: [CMake] ctest - how to set environment

2008-02-20 Thread David Cole
You could detect that your desired env vars are empty in your CMakeLists.txtand have CMake emit an error. IF("$ENV{my_env_var}" STREQUAL "") MESSAGE(FATAL_ERROR "error: required env var not set - please set my_env_var in your environment before running cmake/make/make test") ENDIF("$ENV{my_env_v

Re: [CMake] Cmake 2.4.8 dependencies

2008-02-20 Thread David Cole
It's possible to have ctest submit dashboard data files using the xml-rpc protocol. That's why the dependency is there. Not sure how often used that feature is. On 2/20/08, pepone. onrez <[EMAIL PROTECTED]> wrote: > > Hi > > Why CMake-2.4.8 requires xml-rpc package? > > Can any body explains why

Re: [CMake] ctest - how to set environment

2008-02-21 Thread David Cole
On 2/21/08, Jörg Becker <[EMAIL PROTECTED]> wrote: > > Until this will be implemented, I think about David's and Bill's > suggestions > for a workaround. > I would go with Bill's suggestion actually. That will make it automatic for your developers and they will not have to set the environment manu

Re: [CMake] including lib

2008-02-26 Thread David Cole
Actually, try this: (note the "NAMES") find_library(glut NAMES "glut32" PATHS "Z:/Opt/lib" NO_DEFAULT_PATH) Commands can be upper or lower case, but the arguments to the commands that are "special" words must typically still be upper case, exactly as documented with --help-command. So NAMES should

Re: [CMake] How to find_file by pattern

2008-02-26 Thread David Cole
Try: FILE(GLOB OMNIORB_VERSION_FILE "${OMNIORB_ROOT_DIR}/THIS_IS_OMNIORB_*" ) HTH, David On 2/26/08, Laurent Humbertclaude <[EMAIL PROTECTED]> wrote: > > Hi, > > while writing a FindXXX.cmake module, > I am trying to figure out the version of the library. > The library use an empty file in the

Re: [CMake] linking to arbitrary libraries in linux.

2008-02-28 Thread David Cole
On 2/28/08, Alexander Neundorf <[EMAIL PROTECTED]> wrote: > > > target_link_libraries(targetName /full/path/to/libName.a) FYI: The "/full/path/to/" feature was only recently added to CVS CMake. The specify lib by a full path technique may not work as you'd expect in CMake 2.4.8 If you want

Re: [CMake] Selecting DEBUG and RELEASE Builds in Linux

2008-03-04 Thread David Cole
With a make file generator, you do set CMAKE_BUILD_TYPE to Debug or Release at configure time. Then, if you want both builds, you need to have two build trees, one configured for Debug, the other for Release. The part of the Wiki you are referring to only applies to IDEs that have their own project

Re: [CMake] Add lots of commands

2008-03-04 Thread David Cole
You could do this: (I haven't tried, but it should work unless you have a bunch of fancy stuff in ${entry} that will need escaping...) SET(commands "") FOREACH(entry ${entries}) SET(commands ${commands} COMMAND ${entry} ) ENDFOREACH(entry) ADD_CUSTOM_COMMAND(TARGET POST_BUILD ${

Re: [CMake] ADD_CUSTOM_COMMAND-question

2008-03-05 Thread David Cole
In the Visual Studio IDE, go to "Tools > Options > Projects and Solutions > VC++ Directories" and inspect the value for Win32 Executable Files directories. You can add "$(PATH)" as the last entry in that box, or explicitly add the directory to perl.exe. In VS 2005 and later, MS puts $(PATH) there

Re: [CMake] CTest and GIT

2008-03-05 Thread David Cole
With this declarative style script, the inner ctest run via CTEST_COMMAND will use the CVSCOMMAND cache entry... CTEST_CVS_COMMAND is used when you use the CTEST_UPDATE() command within a command-based script (as opposed to a declarative script). Try adding: CVSCOMMAND:STRING=/usr/bin/git-clone t

Re: [CMake] CTest and GIT

2008-03-05 Thread David Cole
Sorry for the lame suggestion, then... I have not yet used git personally, so I'm not up to speed on git command lines. On 3/5/08, Brad King <[EMAIL PROTECTED]> wrote: > > David Cole wrote: > > With this declarative style script, the inner ctest run via > > CTEST_CO

Re: [CMake] CPack : seg fault

2008-03-06 Thread David Cole
I tried to repro this just now, but I get a build error at svn revision 2668. Linking CXX static library ../../bin/libgdcmDICT.a [ 60%] Built target gdcmDICT Scanning dependencies of target gdcmDSED [ 60%] Building CXX object Source/DataStructureAndEncodingDefinition/CMakeFiles/gdcmDSED.dir/gdcmTa

Re: [CMake] CPack : seg fault

2008-03-06 Thread David Cole
be all set when taking rev > 2669. > > Thanks again > -Mathieu > > > On Thu, Mar 6, 2008 at 7:47 PM, David Cole <[EMAIL PROTECTED]> wrote: > > I tried to repro this just now, but I get a build error at svn revision > > 2668. > > > > Linking CXX static li

Re: [CMake] CPack : seg fault

2008-03-07 Thread David Cole
No trick. gdb under cygwin just plain sucks. So you resort to old-school debugging. You can use "cpack --debug" to get more verbose output and help narrow down where something happens. Or add cout/printf code to a build of CPack until you figure it out... On 3/7/08, Mathieu Malaterre <[EMAIL PROT

Re: [CMake] cyclic DLL dependencies

2008-03-13 Thread David Cole
The real solution is to make them into one library. If you can't have one without the other, then why bother having two? You have to have both by definition because of the two-way dependency. Why not consolidate them into one? Or... force them to be static libs (ADD_LIBRARY(... STATIC ...)) and li

Re: [CMake] 'check' target

2008-03-13 Thread David Cole
Try:make test On 3/13/08, Rodolfo Lima <[EMAIL PROTECTED]> wrote: > > Usually on autotooled projects there's a 'check' target that can be run > with a 'make check' command. Is it feasible to create such target in a > cmake build tree that would call ctest? That would be helpful for > newcomers t

Re: [CMake] 'check' target

2008-03-13 Thread David Cole
For it to work, there has to be an "ENABLE_TESTING()" in the top level CMakeLists.txt file. And at least one ADD_TEST somewhere in the tree... "make test" should be equivalent to running "ctest" in the top level binary directory. (Or any sub-directory for that matter.) HTH, David On 3/13/08, Ro

Re: [CMake] problem deploying 64 bit from VS 2005

2008-03-14 Thread David Cole
Sounds like INCLUDE(InstallRequiredSystemLibraries) is not giving you the 64-bit dlls... Can you run dumpbin on one of the installed dlls to see if it's x86 or amd64?? Just open a Visual Studio command prompt and type "dumpbin blah.dll" and send along the results... On 3/14/08, [EMAIL PROTECTED]

Re: [CMake] problem deploying 64 bit from VS 2005

2008-03-14 Thread David Cole
hrough the cracks. Coming soon, hopefully, David On 3/14/08, David Cole <[EMAIL PROTECTED]> wrote: > > Sounds like INCLUDE(InstallRequiredSystemLibraries) is not giving you the > 64-bit dlls... > > Can you run dumpbin on one of the installed dlls to see if it's x86 or >

Re: [CMake] [CPACK] debian package

2008-03-28 Thread David Cole
Why not do a FIND_PROGRAM on dpkg and use it if it's there (and you're not cross-compiling...) but keep the old logic in place if there is no dpkg? On Fri, Mar 28, 2008 at 11:37 AM, Mathieu Malaterre < [EMAIL PROTECTED]> wrote: > Hi, > > Please consider the attached patch for inclusion in cm

Re: [CMake] CMake 2.6 Gui App not picking up environment variables

2008-03-28 Thread David Cole
You can launch it from a shell that has the env set : open /Applications//cmake-gui.app Or follow the directions here to set env vars for all your GUI apps in Mac OSX: http://developer.apple.com/documentation/MacOSX/Conceptual/OSX_Technology_Overview/CommandLine/chapter_950_section_4.html On

Re: [CMake] Getting the subversion version using CMake.

2008-04-01 Thread David Cole
Try this in your top level CMakeLists.txt file: FIND_PACKAGE(Subversion) IF(Subversion_FOUND) Subversion_WC_INFO("${CMAKE_CURRENT_SOURCE_DIR}" myproj) MESSAGE(STATUS "myproj_WC_REVISION='${myproj_WC_REVISION}'") ENDIF(Subversion_FOUND) WC == working copy See the macro definition of Subversion

Re: [CMake] Using CTEST_CUSTOM_WARNING_EXCEPTION

2008-04-03 Thread David Cole
Uncomment this line in your script: #CTEST_READ_CUSTOM_FILES("${CTEST_BINARY_DIRECTORY}") That's the line that reads in the CTestCustom file for a new-style script.. :-) On Thu, Apr 3, 2008 at 5:59 AM, Mathieu Malaterre < [EMAIL PROTECTED]> wrote: > Hi, > > > Ok I must be doing something

Re: [CMake] CMake 2.6.0 Beta ready for testing!

2008-04-03 Thread David Cole
I think it should be a new CPack generator that expects a single bundle in its make install tree and that makes a simple .dmg wrapper around that bundle. Instead of "PackageMaker" generator, maybe a new "BundleDMG" generator? Thx, David On Thu, Apr 3, 2008 at 8:41 AM, Mike Jackson <[EMAIL PROTE

Re: [CMake] Cpack from CMake and NSIS

2008-04-05 Thread David Cole
That NSIS file is configure from Modules/NSIS.template.in -- in the input file the line giving you an error is: InstallDir "[EMAIL PROTECTED]@" So there must be a carriage return in your definition of CPACK_PACKAGE_INSTALL_DIRECTORY somehow. Perhaps this: SET(CPACK_PACKAGE_INSTALL_DIRECT

Re: [CMake] installing resources in mac app on cmake 2.6

2008-04-07 Thread David Cole
This is a snippet from the CMake source tree, in the file CMake/Tests/BundleTest/CMakeLists.txt : SET_SOURCE_FILES_PROPERTIES( "${CMAKE_CURRENT_BINARY_DIR}/randomResourceFile.plist" PROPERTIES MACOSX_PACKAGE_LOCATION Resources ) SET_SOURCE_FILES_PROPERTIES( SomeRandomFile.txt "${CMak

Re: [CMake] LIBRARY_OUTPUT_PATH

2008-04-10 Thread David Cole
If you build your project, do the exes and libs go to the "bin" directory...? When you say they are "empty" do you mean when viewed in the CMakeSetup, cmake-gui or ccmake program...? These are cache variables and unless you SET them with CACHE and FORCE in your CMakeLists.txt file they will not sho

Re: [CMake] LIBRARY_OUTPUT_PATH

2008-04-11 Thread David Cole
nes from the page > "CMake Useful Variables" in the CMake wiki, maybe this page should be > updated... > > Matthias > > > > > David Cole schrieb: > > > If you build your project, do the exes and libs go to the "bin" > > directory...?

Re: [CMake] add_executable WIN32

2008-04-11 Thread David Cole
Having said that, if you provide "main" to a /subsytem:windows application, it will still work, but it will have an annoying console window pop up if you launch your app by double-clicking on it from Windows Explorer. On Fri, Apr 11, 2008 at 6:37 AM, David Cole <[EMAIL PROT

Re: [CMake] add_executable WIN32

2008-04-11 Thread David Cole
WIN32 in ADD_EXECUTABLE == /subsystem:windows lack of WIN32 == /subsystem:console It's up to you to provide "WinMain" if you specify WIN32 and to provide "main" otherwise... On Fri, Apr 11, 2008 at 5:03 AM, Alin M Elena <[EMAIL PROTECTED]> wrote: > Hi, > > I think that I am a little confused ab

Re: [CMake] CHECK_FUNCTION_EXISTS

2008-04-12 Thread David Cole
Try setting CMAKE_REQUIRED_LIBRARIES to kernel32 (or maybe kernel32.lib?) before checking for Sleep. SET(CMAKE_REQUIRED_LIBRARIES "kernel32") CHECK_FUNCTION_EXISTS(Sleep HAVE_SLEEP) Does that work? On Sat, Apr 12, 2008 at 6:21 AM, George Neill <[EMAIL PROTECTED]> wrote: > Hi CMakers, > > I fee

Re: [CMake] Find_ macros searching order

2008-04-15 Thread David Cole
You can achieve what you want with two find calls. The first is with NO_DEFAULT_PATH, then if it's not found, the second is without NO_DEFAULT_PATH. That way, yours will be found first, but the system version will be found if yours does not exist. HTH, David On Tue, Apr 15, 2008 at 11:18 AM, Al

Re: [CMake] CPack issue with PackageMaker

2008-04-15 Thread David Cole
Something must be wrong with your build tree or your CMake installation. This is from the CMake 2.4.8 Modules/CPack.cmake file: cpack_set_if_not_set(CPACK_PACKAGE_RELOCATABLE "false") # always force to exactly "true" or "false" for CPack.Info.plist.in: if(CPACK_PACKAGE_RELOCATABLE) set(CPACK

Re: [CMake] CPack issue with PackageMaker

2008-04-15 Thread David Cole
In 2.4.7, the relocatable part of the info.plist file was hard-coded to "false". So it's still a mystery to me why it should end up blank for you... On Tue, Apr 15, 2008 at 1:14 PM, Timenkov Yuri <[EMAIL PROTECTED]> wrote: > On Tuesday 15 April 2008 20:56:11 David C

Re: [CMake] cmake 2.6-RC-8: Problem with WxWidgets 2.8 on OSX 10.3

2008-04-16 Thread David Cole
dgets include directory). There is a CMake test named "complex" that exercises the INCLUDE_DIRECTORIES(SYSTEM ...) functionality and it passes on all our Mac dashboards. HTH, David On Tue, Apr 15, 2008 at 5:10 PM, Honest Guvnor <[EMAIL PROTECTED]> wrote: > On Tue, Apr 15, 200

Re: [CMake] CMake doesn't accept multiple entries for a variable on the commandline

2008-04-17 Thread David Cole
Try quoting the whole thing: cmake "-DCMAKE_CXX_FLAGS=-pedantic -g3 -O0" On Thu, Apr 17, 2008 at 6:05 AM, Pau Garcia i Quiles <[EMAIL PROTECTED]> wrote: > Quoting Andreas Pakulat <[EMAIL PROTECTED]>: > > Hi, > > > > trying to execute > > > > cmake -DCMAKE_CXX_FLAGS="-pedantic -g3 -O0" > > > > d

Re: [CMake] CPack/NSIS installation of specific components

2008-04-17 Thread David Cole
to. If you could also add a test project with 2 or 3 components in it that demonstrates how to use the new variables you've invented, I could see it becoming part of a future CMake release. Thanks for getting the ball rolling. David Cole On Thu, Apr 17, 2008 at 12:53 AM, Doug Gregor &l

Re: [CMake] CPack is memory leaking

2008-04-17 Thread David Cole
Not anymore. http://public.kitware.com/cgi-bin/viewcvs.cgi/Source/CPack/cpack.cxx?root=CMake&r1=1.42&r2=1.43 Thanks, Mathieu. Dave On Thu, Apr 17, 2008 at 5:08 AM, Mathieu Malaterre < [EMAIL PROTECTED]> wrote: > ==31752== 55,457 (272 direct, 55,185 indirect) bytes in 1 blocks are > defin

Re: [CMake] Problems with Apple OSX Bundles

2008-04-18 Thread David Cole
You need to do the SET calls *before* the ADD_EXECUTABLE calls. The ADD_EXECUTABLE uses the current value of those variables to configure an Info.plist file for a bundle app... HTH, David On Fri, Apr 18, 2008 at 3:23 AM, Dieter Oberkofler <[EMAIL PROTECTED]> wrote: > I'm using CMake 2.4.4 on th

Re: [CMake] Supporting the Intel Compiler -- building static libraries

2008-04-18 Thread David Cole
This is one of those things where you have to have the setting right before any possible TRY_COMPILE actions in any CMakeLists files. It's *conceptually* equivalent to changing the compiler. What you tried by using -DCMAKE_AR should work if you start with an empty binary tree. (And starting with a

Re: [CMake] Problems with Apple OSX Bundles

2008-04-18 Thread David Cole
last SET(MACOSX_BUNDLE_*) > calls are used for both executables. > > > -- > *From:* David Cole [mailto:[EMAIL PROTECTED] > *Sent:* Friday, April 18, 2008 13:35 > *To:* [EMAIL PROTECTED] > *Cc:* CMake@cmake.org > *Subject:* Re: [CMake] Problems wi

Re: [CMake] CMake doesn't accept multiple entries for a variable on the commandline

2008-04-21 Thread David Cole
o see the value in the cache, you need to give it a type as well (the ":STRING"): "-DCMAKE_CXX_FLAGS:STRING=-pedantic -g3 -O0" HTH, David On Mon, Apr 21, 2008 at 5:16 AM, Andreas Pakulat <[EMAIL PROTECTED]> wrote: > On 17.04.08 07:03:32, David Cole wrote: > >

Re: [CMake] FUNCTION doesn't changes parent variables

2008-04-23 Thread David Cole
> Why MYTEST function doesn't changes the parent variable MYMSG? > Do I need to FORCE it? No, you need to PARENT_SCOPE it. See cmake --help-command SET for details about PARENT_SCOPE. HTH, David On Wed, Apr 23, 2008 at 11:29 AM, Alejandro Morell Garcia < [EMAIL PROTECTED]> wrote: > Hello, I'm

Re: [CMake] Cmake/MacPackaging

2008-04-30 Thread David Cole
The error message comes from the CPack PackageMakerGenerator regarding these settings: SET(CPACK_RESOURCE_FILE_LICENSE "/Users/pashov_d/dev/aten/COPYING") SET(CPACK_RESOURCE_FILE_README "/usr/local/CMake 2.7-20080430.app/Contents/share/cmake-2.7/Templates/CPack.GenericDescription.txt") SET(CPACK_R

Re: [CMake] Can't set CMAKE_Fortran_FLAGS ?

2008-05-01 Thread David Cole
When you: SET(CMAKE_Fortran_FLAGS "-fno-backslash") it does not affect the cache... it is only a local override of the cache value. It should take effect in the generated project/make files, though. If you want to see it in the cache editor, you have to use "FORCE" with SET. (Although if you do

Re: [CMake] Cmake/MacPackaging

2008-05-01 Thread David Cole
Is your application an X11 app? If not, you should not need the OSXX11 generator. (And if so, you probably don't need the PackageMaker generator...?) The OSXX11 generator gives you a wrapper application that sets up the X11 environment and then launches your X11 app. That way, end users can just d

Re: [CMake] Including third party libraries

2008-05-02 Thread David Cole
GetPrerequisites.cmake is intended to be used from inside a CMake -P script, although there's nothing to prevent you from using it from a CMakeLists.txt. You could write a .cmake script that executes at install time to gather up the list of (presumably copy-able) 3rd party libraries and copy them i

Re: [CMake] cmake "Regular expression "*Windows.*" cannot compile

2008-05-06 Thread David Cole
Because the * follows nothing (as indicated by the very first error message given always fix the first error first) RegularExpression::compile(): ?+* follows nothing. * means "zero or more of the preceding character" in a regular expression. If there is no preceding character it is not a well

Re: [CMake] ADD_DEFINITIONS with output from shell

2008-05-07 Thread David Cole
See also: http://public.kitware.com/cgi-bin/viewcvs.cgi/Modules/FindSubversion.cmake?root=CMake&view=markup After a FIND_PACKAGE(Subversion) call, simply use the Subversion_WC_INFO macro to retrieve an "svn info" call as a slew of CMake variables... HTH, David On Wed, May 7, 2008 at 7:03 AM, A

Re: [CMake] How to read content of a registry entry on WIN32?

2008-05-07 Thread David Cole
It looks like you are missing a ";" before InstallPath. The ";" delimits the key name and the value name in this syntax... On Wed, May 7, 2008 at 11:42 AM, Alan W. Irwin <[EMAIL PROTECTED]> wrote: > On 2008-05-07 15:37+0200 Eric Noulard wrote: > > I want to use the content of a regsitry entry >

Re: [CMake] [Paraview] paraview CVS xcodebuild

2008-05-08 Thread David Cole
Nobody is able to open the xcodeproj with Xcode. Xcode crashes when opening it... Haven't tried it myself, but that seems to be the consistent report from everybody I've talked to who has tried it... On Thu, May 8, 2008 at 10:42 AM, Sean McBride <[EMAIL PROTECTED]> wrote: > On 5/7/08 3:52 PM, j

Re: [CMake] Specifying a pre-build dependency?

2008-05-09 Thread David Cole
When is "on demand"? You could do this at CMake configure time if the "on demand" choice is based on something known at CMake configure time. If not, then it must be based on build dependencies and could be injected into the stream of stuff that is built with ADD_CUSTOM_COMMAND rules. Can you do

Re: [CMake] Why CPack does not _ALWAYS_ use DESTDIR?

2008-05-13 Thread David Cole
On Windows, where you have DESTDIR=C:/MyDir and an "absolute" install path of "C:/Program Files/Whatever" "C:/MyDir/C:/Program Files/Whatever" is probably going to make somebody a bit grumpy... Big picture perspective needed. Do not hastily change default behaviors. On Tue, May 13, 2008 at

Re: [CMake] Executable extension (MSVC)

2008-05-14 Thread David Cole
No flags, just name the output file .com instead of .exe... Still works with present day Visual Studio... On Wed, May 14, 2008 at 1:00 PM, John Drescher <[EMAIL PROTECTED]> wrote: > > What are the flags used in MSVC to create a .com file? > > > I assume you need a very old version of msvc to s

Re: [CMake] avoid windows link warning: LNK4221

2008-05-15 Thread David Cole
Why not eliminate the warning instead...? Either eliminate the source file that produces the warning or add an empty "dummy" function to it so that at least one symbol is publicly available from the lib. HTH, David On Wed, May 14, 2008 at 2:28 PM, Phil Pellouchoud <[EMAIL PROTECTED]> wrote: >

Re: [CMake] [ctest] junit xml output

2008-05-19 Thread David Cole
That's a great idea! Are cppunit and nunit output formats similar enough to junit that they could all be done at once...? Feel free to submit a patch implementing this as a feature request in the bug tracker... or to create a CMake Wiki page with details on what output format would be useful for t

Re: [CMake] Issues with VS2005 Pro, CMake 2.4.8, Win XP, ParaView

2008-05-23 Thread David Cole
c135 is the "unable to locate dll" exception, not c0150004... I could not find what c0150004 means using google, although apparently it occurs frequently to people with Vista when it tries to do automatic updating :-P I suspect if you can run it under the debugger, you might be able to ca

Re: [CMake] Dealing with dll PATH on Windows

2008-05-23 Thread David Cole
If you want to write reg values with cmake, you can execute cmake as a sub-process with -E command line args (for example, using EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} in your CMakeLists.txt file) Use the write_regv -E sub-command: cmake -E CMake Error: cmake version 2.6-patch 0 Usage: cma

Re: [CMake] multiple executables

2008-06-02 Thread David Cole
Your initial attempt looks reasonable... Did you try it without the "VERBATIM" argument to the ADD_CUSTOM_COMMAND? This sort of copy command should work if invoked from Visual Studio, even with the $(OutDir) reference... HTH, David On Sun, Jun 1, 2008 at 10:29 AM, Pečiva Jan <[EMAIL PROTECTED]

Re: [CMake] CPack NSIS no branding image

2008-06-02 Thread David Cole
Try: SET(CPACK_PACKAGE_ICON "${CMAKE_SOURCE_DIR}test.bmp") There is a "bug" in the NSIS installer that refuses to extract the file name properly when there are only "/" forward slashes in the file name... HTH, David On Sun, Jun 1, 2008 at 5:48 PM, Torsten Grote <[EMAIL PROTECTED]> wrote:

Re: [CMake] Getting the number of processor

2008-06-03 Thread David Cole
(1) What contents are in /proc/cpuinfo? (2) What are you getting as output when you use this CMake code? (3) What do you expect to get? On Fri, May 30, 2008 at 12:33 PM, Mathieu Malaterre < [EMAIL PROTECTED]> wrote: > regex are driving me nuts... could someone please let me know what is > wrong

Re: [CMake] Package: dev vs runtime package

2008-06-06 Thread David Cole
Look at the cmake_install.cmake file in the top level of your build tree. There should be references to CMAKE_INSTALL_COMPONENT and COMPONENT variables. make install will typically do a "cmake -P cmake_install.cmake" -- to do a COMPONENT based install, you can do: cmake -DCOMPONENT=Runtime -P cm

Re: [CMake] [PATCH] simple test to test the FindXXX.cmake modules

2008-06-16 Thread David Cole
On Sat, Jun 14, 2008 at 4:08 PM, Alexander Neundorf <[EMAIL PROTECTED]> wrote: Is it worth committing ? Absolutely! As you say, it does not test everything that could be tested w.r.t. the FindXXX files, but it does at least execute through all of them. __

Re: [CMake] Changes to NMake Makefiles generator in 2.6?

2008-06-17 Thread David Cole
Did you start with an absolutely clean build tree, or might there be some build output leftover from CMake 2.4...? On Tue, Jun 17, 2008 at 1:55 PM, Ted Berg <[EMAIL PROTECTED]> wrote: > Sources & build files for a DLL which has been a CMake 2.4 target are being > migrated to a CMake 2.6 project.

Re: [CMake] CPack components

2008-06-18 Thread David Cole
Thanks to Doug Gregor for submitting the several patches used to develop this feature...!! On Wed, Jun 18, 2008 at 6:08 AM, Mathieu Malaterre < [EMAIL PROTECTED]> wrote: > Just saw the recent commit in cmake, cpack components looks awesome ! > > http://public.kitware.com/Wiki/CMake:Component_In

Re: [CMake] CPack NSIS no branding image

2008-06-19 Thread David Cole
CMake's Windows installer itself is created with CPack / NSIS. (But it's all on windows with no cross-compilation environment...) Perhaps this is a "Linux NSIS building a Windows installer" only issue? Or a German language issue with NSIS...? "no branding image found in chosen UI" sounds to me li

Re: [CMake] Inconsistent CTest/CMake variable naming

2008-06-20 Thread David Cole
Regardless of the answer to your original question, these variable names simply cannot be changed now. There are too many scripts that run dashboards that set them as is. The best we could do would be to invent duplicate variable names that are consistent, but then we'd have duplicates and people w

Re: [CMake] Building to a subdirectory UNDER Debug/Release/etc in a Visual Studio build

2008-06-20 Thread David Cole
ADD_CUSTOM_COMMAND to copy the modules to "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/modules" should work... On Fri, Jun 20, 2008 at 10:48 AM, Mike Arthur <[EMAIL PROTECTED]> wrote: > Part 3 in my never-ending quest to replace our Visual-Studio-based build > system with CMake has me

Re: [CMake] Get Qt DLL paths for INSTALL

2008-06-20 Thread David Cole
I've been distracted and put that aside for a while. I'll see if I can't get back to it in the coming week... On Fri, Jun 20, 2008 at 4:16 PM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > >> On Friday 20 June 2008 8:52:25 am Mike Arthur wrote: >> >>> On Wednesday 18 June

Re: [CMake] Generating source code packages with Windows line endings

2008-06-23 Thread David Cole
The Windows source package is built on Windows with Windows tools. Similarly for the Unix source package. If you do it that way, everything "just works". On Mon, Jun 23, 2008 at 11:55 AM, Alan W. Irwin <[EMAIL PROTECTED]> wrote: > I have a Windows user for FreeEOS that is having trouble with th

Re: [CMake] CMake internal assertion failing at generate time

2008-06-26 Thread David Cole
This is the same as the mantis issue http://public.kitware.com/Bug/view.php?id=6799 which I closed on 6/19. It is fixed already in CVS HEAD and in CVS CMake-2-6 branch. But it is still repeatable in CMake 2.6.0. On Thu, Jun 26, 2008 at 5:45 PM, James Bigler <[EMAIL PROTECTED]> wrote: > On Thu,

Re: [CMake] WORKING_DIRECTORY ignored for ADD_CUSTOM_COMMAND on VisualStudio?

2008-06-27 Thread David Cole
Try just "cd" -- cd . does not give any output at all, it's just a no-op... cd without any arguments prints the current working directory just like pwd... On Fri, Jun 27, 2008 at 9:20 AM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > Martin Apel wrote: > >> Bill Hoffman wrote: >> >>> Martin Apel w

Re: [CMake] MSVC90.dll and Debug configuration

2008-07-02 Thread David Cole
That probably means you are loading some other release dll that depends on MSVC90.dll. You can use depends.exe on all the dlls that load prior to MSVC90.dll to figure out which one it is... On Wed, Jul 2, 2008 at 8:10 AM, Mehdi Rabah <[EMAIL PROTECTED]> wrote: > Hi, > > I was wondering if it's n

Re: [CMake] MSVC90.dll and Debug configuration

2008-07-02 Thread David Cole
ratch does the same thing happen again? On Wed, Jul 2, 2008 at 9:45 AM, Mehdi Rabah <[EMAIL PROTECTED]> wrote: > using dependency walker I see that a DLL built by my cmake-generated > project depends on both msvcr90 and msvcr90d. any idea why ? > > > On Wed, Jul 2, 2008

Re: [CMake] CPack and Component Based Installers?

2008-07-02 Thread David Cole
It's in CVS CMake... still under development... On Wed, Jul 2, 2008 at 10:49 AM, Mike Jackson <[EMAIL PROTECTED]> wrote: > Is the information on the wiki page > > up to date? I tried adding the necessary information into my own cma

Re: [CMake] Mysterious build error that seems to have been slipstreamed into CMake 2.6

2008-07-14 Thread David Cole
CMake-2-6 is a branch tag, not a release tag. CMake-2-6-0 is the release tag. Changes are being committed to CMake-2-6 in preparation for the upcoming 2.6.1 release On Mon, Jul 14, 2008 at 11:54 AM, kent williams <[EMAIL PROTECTED]> wrote: > By the way the problem is fixed by changing > C

<    7   8   9   10   11   12   13   14   15   16   >