Re: [CMake] redefining CMake package target when using CPack

2012-08-27 Thread Eric Noulard
2012/8/28 Bruce Cartland : > I'm currently generating multiple distinct debian packages (runtime and > dev). > > I have a typical cmake file with cpack commands in it ending with > "inlude(CPack)" . This generates the targets "package" and "package-source". > On debian platforms, I want "package_so

[CMake] redefining CMake package target when using CPack

2012-08-27 Thread Bruce Cartland
I'm currently generating multiple distinct debian packages (runtime and dev). I have a typical cmake file with cpack commands in it ending with "inlude(CPack)" . This generates the targets "package" and "package-source". On debian platforms, I want "package_source" but I'd like to redefine/ov

[CMake] warning: cannot find entry symbol arch_paths_first

2012-08-27 Thread sandrews
Hi, I'm trying to compile a very simple program (called wrl2smol) with CMake. This program is a single file of plain C, has no dependencies other than C standard libraries, and has no graphics. It's a test for a more complex program, so I want to get the build system to work with CMake, even if

[CMake] Precompiled headers on OS X 10.8, CMAKE 2.8.9, Clang

2012-08-27 Thread Jason T. Slack-Moehrle
Hello All, OS X 10.8.1 CMAKE 2.8.9 Apple clang version 4.0 (tags/Apple/clang-421.10.60) (based on LLVM 3.1svn) I found: http://vtk.org/Wiki/CMake_FAQ#Does_CMake_support_precompiled_headers.3F But I am not seeing how I would specify/use a pre-compiled header in my CMakeLists.txt file. Can anyone

[CMake] Different handling of spaces in COMPILE_FLAGS on Windows XP

2012-08-27 Thread Robert Dailey
I'm seeing different results here between Windows 7 and Windows XP. Here is the CMake code I use to add /FI (force includes) to the compiler flags for a source file: function( _force_include header_file ) if( MSVC ) foreach( source ${ARGN} ) get_file

Re: [CMake] Windows Ninja cmcldeps.exe too verbose

2012-08-27 Thread Peter Kümmel
Great, this regex solution is much better, thanks! I've tested it with the German cl version and it works. I've pushed it to next. Peter On 27.08.2012 09:58, Nils Gladitz wrote: I replaced the five string commands in CMakeCLDeps.cmake with: string(REGEX MATCH "\n([^:]*:[^:]*:[ \t]*)" sh

Re: [CMake] Windows Ninja cmcldeps.exe too verbose

2012-08-27 Thread Nils Gladitz
I replaced the five string commands in CMakeCLDeps.cmake with: string(REGEX MATCH "\n([^:]*:[^:]*:[ \t]*)" showOut2 "${showOut}") set(showOut3 "${CMAKE_MATCH_1}") Which looks like it would work but I don't know if it is safe to assume that the localized messages match as well(?) Nils