Re: [CMake] Command line cmake not picking up variable that gets picked up in the GUI

2012-12-02 Thread Yuri Timenkov
You should put this variable into cache one way or another. (e.g. explicitly set with CACHE option or use in some find_* command). The most straight-forward approach is to add to your CMakeLists.txtsomething like: set(CODE_BUILD_DIR ${CODE_BUILD_DIR} CACHE PATH Path to CODE package) But beware

Re: [CMake] cmake on Windows x64

2012-10-15 Thread Yuri Timenkov
The 32 vs 64 bit switch based on pointer size is not sufficient. To be 100% correct you shall be able to differentiate between x86_64 and IA-64 (However I think it's quite rare case). And to me personally condition with target architecture looks better than CMAKE_CL_64 or checking the size of

Re: [CMake] cmake on Windows x64

2012-10-14 Thread Yuri Timenkov
Except that you have CMAKE_SYSTEM_PROCESSOR == x86 (event for Win64 generators) in your CMake files along with all search paths which sometimes very inconvenient. On Fri, Oct 12, 2012 at 5:31 PM, John Drescher dresche...@gmail.com wrote: I noticed that there is cmake binary package for Windows

Re: [CMake] Linking an entire static library

2012-09-10 Thread Yuri Timenkov
As an option you may create .def file which lists functions from static library as exported. This will force linker to treat them as undefined and link with all dependencies. However this requires some actions and works only for quite stable libs. We employed this approach when we had no control

Re: [CMake] configuring cmake using program options?

2012-09-10 Thread Yuri Timenkov
I think on contrary, the value passed from command line wasn't saved into cache. You should do it manually in your CMakeLists.txt, like set(Mylib_DIR ${Mylib_DIR} CACHE PATH Path to something) But variables with _DIR suffix are usually set by find_package command, I'm not sure about expected

Re: [CMake] Scanning dependencies of target slowness weirdness.

2012-09-10 Thread Yuri Timenkov
Or it's implementation on Linux... I doubt anybody had any problems with NTFS on Windows :) You may also be using it via FUSE... not fastest approach. If you need to keep your sources on NTFS you may create temporary location on native FS and rsync before building (or DVCS). We used it instead

Re: [CMake] Different compiler in sub directory

2012-09-05 Thread Yuri Timenkov
It's better to use ExternalProject.cmake to configure part of your solution with different compiler. On Wed, Sep 5, 2012 at 12:09 PM, Nicholas Yue yue.nicho...@gmail.comwrote: Hi, I have a need to build different parts of a project using different version of g++ If I set the top

Re: [CMake] C# and cmake ?

2012-08-22 Thread Yuri Timenkov
It's better to use include_external_msproject with C# projects. After fixing bug http://public.kitware.com/Bug/view.php?id=13120 it's possible to use: include_external_msproject(Configurator ${CMAKE_SOURCE_DIR}/MyCSProject.csproj TYPE FAE04EC0-301F-11D3-BF4B-00C04F79EFBC PLATFORM Any CPU

Re: [CMake] C# and cmake ?

2012-08-22 Thread Yuri Timenkov
-jason.com wrote: * Yuri Timenkov y...@timenkov.ru (Wed, Aug 22, 2012 at 01:20:37PM +0200) It's better to use include_external_msproject with C# projects. After fixing bug http://public.kitware.com/Bug/view.php?id=13120 it's possible to use: include_external_msproject(Configurator

Re: [CMake] UTILITY library?

2012-08-12 Thread Yuri Timenkov
But it would be great if one can override msproject target type. It could be used properly in generator commands and test afterwards without any problems with configurations. (E.g. if you have test runner or kind of code generator written in C# or VB). On Wed, Aug 8, 2012 at 4:49 PM, Klaim - Joël

Re: [CMake] Automatic rebuild of external projects

2012-07-02 Thread Yuri Timenkov
Hi, It's possible with some modifications to ExternalProject.cmake: http://public.kitware.com/Bug/view.php?id=12322 However it is not encouraged by CMake developers. On Mon, Jul 2, 2012 at 2:25 PM, Evgeny Startsev exbluesbrea...@gmail.com wrote: I am using external project module for cmake. Is

Re: [CMake] local and system installs that include python and shell scripts

2012-06-27 Thread Yuri Timenkov
I think it should be quite common case in KDE community, since GUI usually have resources, but I don't know if apps can run from build dir. We use custom commands for these purposes, something like this: get_filename_component(destPath ${destName} PATH) add_custom_command(OUTPUT

Re: [CMake] /STACK:10000000 being added to linker in Visual Studio?

2012-06-27 Thread Yuri Timenkov
As an option you can set up all these flags manually. In my current project we don't have many compilers to support but we need fine-grained control over compiler options (due to legacy and compatibility reasons). CMake allows to set precisely required options: # Override default Compiler flags

Re: [CMake] Separate compiler and linker pdb

2012-06-23 Thread Yuri Timenkov
with the pdbs overwriting each other? Or is that safe? Couldn't you just call them *.compiler.pdb and *.linker.pdb as a temporary fix, and leave to the user the burden of picking up the relevant ones? Michele On 21/06/2012 19:10, Yuri Timenkov wrote: This is a limitation of CMake

Re: [CMake] Separate compiler and linker pdb

2012-06-21 Thread Yuri Timenkov
This is a limitation of CMake. There is a discussion at http://public.kitware.com/Bug/view.php?id=11899 On Tue, Jun 19, 2012 at 7:57 PM, Michele Santullo michele.santu...@larian.com wrote: Hello, we recently converted our project to cmake but for some reason, as we generate for VS 2008 on

Re: [CMake] Current binary directory confusion

2012-06-21 Thread Yuri Timenkov
Then you should use LOCATION target property (http://www.cmake.org/cmake/help/v2.8.8/cmake.html#prop_tgt:LOCATION) or use generator expressions, because exact place where resulting binary located depends on many things (used generator, other variables, like CMAKE_RUNTIME_OUTPUT_DIR, etc). On Thu,

Re: [CMake] Problem with Visual Studio, custom commands, and dependencies. Bug?

2012-06-21 Thread Yuri Timenkov
I'm not sure but this may be feature of msbuild: it doesn't rescan dependencies after run. This causes a lot of troubles with generated code (for same reason auto-reloading macro doesn't work since VS2010). You may try to work this around by splitting build into several stages (i.e. adding custom

Re: [CMake] automatable way to specify parallel --builds

2012-06-21 Thread Yuri Timenkov
I was thinking of same problem also and it would be good to have common switch in CMake which translates into generator-specific parameter (actually CMAKE_BUILD_TOOL's one, btw you can get it with from CMakeCache.txt). Our builds broke couple of times when CMake jumped between devenv and msbuild

Re: [CMake] Current binary directory confusion

2012-06-21 Thread Yuri Timenkov
Is it strict requirement? Can't you just add your .rc files as source file to your target or just add target name as part of file name? This way they can be put everywhere, including current binary dir. I use this for adding version information to binaries. Otherwise you may try to use post-build

Re: [CMake] different assemblers in single build?

2012-05-22 Thread Yuri Timenkov
Hi, You should have either 2 build trees or use custom commands. If you have a lot of files you should go first way. To ease development you may compile other tree using external project. Unfortunately external project is not rebuilt if its sources changed. You have to do it manually. On Fri,

Re: [CMake] CMake presentation/tutorial in Toulouse/France (8thFebruary)

2012-02-10 Thread Yuri Timenkov
I did the same. And besides being a good CMake tutorial this is also awesome example how to make presentations with Latex :) Thanks for sharing sources. On Fri, Feb 10, 2012 at 4:03 AM, aaron.mead...@thomsonreuters.com wrote: I went through the slides; pretty good introduction-intermediate

Re: [CMake] How to use CMake with icc via configuration options when needing interprocedural optimization?

2012-02-08 Thread Yuri Timenkov
I think this could work, but if compiler is altered before project() call (but I didn't check this and suggest set variable only if it's not already set). Specifying only one variable in command line looks more user-friendly and robust than several ones. Anther option is using initial cache.

Re: [CMake] Under Visual Studio , allow developers to hit F7 to run the INSTALL target

2012-02-08 Thread Yuri Timenkov
I use a special macro for such purposes, something like this: Sub Install() Dim prj As Project Dim sb As SolutionBuild = DTE.Solution.SolutionBuild Dim prjs As Projects = DTE.Solution.Projects For Each prj In prjs If prj.Name = INSTALL Then

Re: [CMake] Compile flag issues and VS Express

2012-02-01 Thread Yuri Timenkov
I can assume that 10M stack is reasonable for C code, where it's usual to allocate temporary buffers on stack (in C++ it's easier to use heap, e.g. using std::vector). Bad thing is - impact of this flag is detected only at run time. If with /Zm your code just won't compile, with /STACK everything

Re: [CMake] Compile flag issues and VS Express

2012-01-28 Thread Yuri Timenkov
Don't know about 2010 Express, but IIRC there were problems (at least in previous VS versions) with compiling code with a lot of templates (like spirit, xpressive or MPL from boost). So compiler asks to increase heap size. Anyways, in our projects I always reset CMake's default compile flags:

Re: [CMake] does CMake have usage targets like Premake?

2012-01-16 Thread Yuri Timenkov
if i understand correctly it's CMake's find_package analog. On Jan 16, 2012 10:41 AM, Lance Luvaul la...@mso.anu.edu.au wrote: See http://sourceforge.net/**tracker/index.php?func=detail**

Re: [CMake] ExternalProject and clean targets

2011-10-24 Thread Yuri Timenkov
IIRC for Visual Studio I had opposite problem: clean on external project didn't triggered rebuild. On Sat, Oct 15, 2011 at 2:34 PM, David Cole david.c...@kitware.com wrote: On Sat, Oct 15, 2011 at 3:48 AM, Michael Hertling mhertl...@online.de wrote: On 10/12/2011 10:22 PM, Lori

Re: [CMake] Bug fix requests for the *next* release of CMake...

2011-10-23 Thread Yuri Timenkov
Hi David, Please add http://public.kitware.com/Bug/view.php?id=9742 to road map. At least part which generates proper GUIDS for different projects (I'm especially interested into including C# projects). Thanks, Yuri On Fri, Oct 21, 2011 at 10:20 PM, David Cole david.c...@kitware.com wrote: As

Re: [CMake] Curious build output

2011-10-05 Thread Yuri Timenkov
It's because VS2010 uses msbuild to build C++ projects. You can modify verbosity level in settings menu: Tools Options Projects and Solutions Build and Run MSBuild project build output verbosity On Wed, Oct 5, 2011 at 10:49 PM, James Bigler jamesbig...@gmail.com wrote: What is this extra

Re: [CMake] Fwd: Save stripped debugging information

2011-10-03 Thread Yuri Timenkov
Hi Michael, On Sun, Oct 2, 2011 at 6:07 PM, Michael Hertling mhertl...@online.dewrote: On 10/01/2011 10:07 AM, Yuri Timenkov wrote: that's the problem: you don't know neither file name nor it's location, especially in multi-configuration generators. You *do* know a debug file's name

Re: [CMake] Fwd: Save stripped debugging information

2011-10-01 Thread Yuri Timenkov
be much easier in some cases. However extracting debug info from binaries is performed by packager (at least rpmbuild does this) On Oct 1, 2011 8:09 AM, Michael Hertling mhertl...@online.de wrote: On 09/30/2011 08:39 AM, Rolf Eike Beer wrote: On 09/29/2011 06:15 AM, Yuri Timenkov wrote: When I

Re: [CMake] Fwd: Save stripped debugging information

2011-09-28 Thread Yuri Timenkov
When I was investigating similar problem, I found alternative approach at http://code.google.com/p/dynamorio/source/browse/trunk/CMakeLists.txt. The thing is to change linker rules, to something like this: set(CMAKE_C_CREATE_SHARED_LIBRARY # standard rule CMAKE_C_COMPILER

Re: [CMake] Setting RuntimeLibrary tag on Visual Studio 10

2011-09-20 Thread Yuri Timenkov
These flags should work. If you specify them, CMake automatically translates them into appropriate XML tags. At least 2.8.5 and 2.8.4 work well. On Tue, Sep 20, 2011 at 1:16 PM, Perry Ismangil pe...@pjsip.org wrote: Hi, I've read

Re: [CMake] [CMake 0012322]: Ability to add source files to target created with ExternalProject

2011-08-12 Thread Yuri Timenkov
, David On Fri, Aug 12, 2011 at 10:46 AM, Yuri Timenkov y...@timenkov.ru wrote: Hello David, It seems that I can't add notes to closed bug, so I ask you directly. I don't quite understand what kind of automatic dependencies you're talking about. If I change file in this way and do build

Re: [CMake] [CMake 0012322]: Ability to add source files to target created with ExternalProject

2011-08-12 Thread Yuri Timenkov
, 2011 at 11:24 AM, Yuri Timenkov y...@timenkov.ru wrote: Ok, I'll double-check this next monday. That's why I was confused. On the second thought if you have a list of sources you can add them as dependencies in addition to build rule, then step will be re-run as expected. May be it's my

Re: [CMake] Intertwined projects.

2011-08-07 Thread Yuri Timenkov
So you are trying to install your project into public location on CI server? If so, why? Otherwise I don't see any reasons why install shouldn't work, if you're installing these libraries into app1's specific temporary build location. And do you really need libA and libB installed? May be you

Re: [CMake] External_Project and WIndows

2011-08-07 Thread Yuri Timenkov
For non-CMake project (especially VS native ones) you could use ${CMAKE_CFG_INT_DIR} variable instead ( http://www.cmake.org/cmake/help/cmake-2-8-docs.html#variable:CMAKE_CFG_INTDIR ) It will be evaluated into current solution's configuration. However please note that in this case configurations

Re: [CMake] separation between .hpp and .inl

2011-08-02 Thread Yuri Timenkov
See source_group command On Aug 2, 2011 12:51 PM, Julien Dardenne julien.darde...@technooliq.com wrote: ** Hello, I want to do the separation between .hpp and .inl in my Visual project. Is there a command CMake to create sub folder in the project and organize my files ? Thanks

Re: [CMake] Problem making vc project

2011-07-28 Thread Yuri Timenkov
the cmakelists. I am sending you the part that is responsible for making the cuda file lists. On Thu, Jul 28, 2011 at 8:03 AM, Yuri Timenkov y...@timenkov.ru wrote: The original CMakeLists will be helpful to solve your problem. Could you provide a small stand-alone example reproducing your problem

Re: [CMake] Problem making vc project

2011-07-27 Thread Yuri Timenkov
The original CMakeLists will be helpful to solve your problem. Could you provide a small stand-alone example reproducing your problem? On Wed, Jul 27, 2011 at 8:02 PM, Nima Nouri nouri.f.n...@gmail.com wrote: Hi everybody I am currently trying to compile my source code on VC9. Previously I

Re: [CMake] VS2010 and superbuild - Fwd: [Ctk-developers] VS2010 support

2011-07-27 Thread Yuri Timenkov
I'm not sure I understood your question, but now I use ExternalProject (from CMake 2.8.4) with Visual Studio 2010 which has 2 externals: one built with custom command (the C# project) and the second one is CMake-based but with VC6 generator. Everything compiles and works fine. But I don't have

Re: [CMake] Build the dependencies tree of an executable

2011-07-22 Thread Yuri Timenkov
Hi Marco, I think target_link_libraries and add_dependencies are not applicable to imported targets. You should set IMPORTED_LINK_INTERFACE_LIBRARIES property instead. I don't remember exactly, but I solved similar problem. You can also try creating sample project with dependent static

Re: [CMake] Adding a Visual Studio 10 specific flag

2011-07-15 Thread Yuri Timenkov
Hi Amir, Although It's better to hear answer from CMake authors I could try to give you some clues. If your project is completely managed by CMake, it's better to employ target property. So, you should add one to property definition map (in cmTarget.cxx), say MS_USE_LIBRARY_DEPENDENCY_INPUTS.

Re: [CMake] How to remove NOMINMAX from Visual Studio projects in CMake

2011-07-12 Thread Yuri Timenkov
Look through your CMakeLists where it is defined. AFAIK CMake doesn't add it if you don't ask. Then, there are options: if it is added via add_definitions() then you can use remove_definitions to remove this macro for single project. If it is passed via COMPILE_FLAGS - then you have to adjust them

Re: [CMake] Adding a Visual Studio 10 specific flag

2011-07-12 Thread Yuri Timenkov
These flags used by CMake internally to properly handle dependencies (as I can tell from source code). LinkLibraryDependencies is turned on when your target depends on target added wihth include_external_msproject. As for UseLibraryDependencyInputs - you can't set this flag with CMake. On Mon,

Re: [CMake] set(... CACHE ) broken for CMAKE_C_FLAGS_{DEBUG, RELEASE, ...} ?

2011-07-07 Thread Yuri Timenkov
May be you're looking for overriding default flags? http://www.cmake.org/Wiki/CMake_FAQ#Make_Override_Files Although it mentions VS static runtime, this approach is very useful to set own initial flags in CMake. On Wed, Jul 6, 2011 at 5:41 PM, Jerry Gagelman gagel...@gmail.com wrote: I'm

Re: [CMake] Strange behaviour with -D option

2011-07-06 Thread Yuri Timenkov
Use something like SET (GUI ${GUI} CACHE BOOL description) To put proper initial value from command line into cache. It won't be overwritten on the second run. On Jul 1, 2011 2:02 PM, pellegrini pellegr...@ill.fr wrote: Hello everybody, there is a behaviour I do not understand when using cmake

Re: [CMake] (no subject)

2011-06-07 Thread Yuri Timenkov
Unfortunately you can get only list of source files (using SOURCES target's property). The location of object files depends on Generator (e.g. for VisualStudio they will be put into configuration-specific location). On Tue, Jun 7, 2011 at 12:32 AM, dfurt...@cox.net wrote: Does CMake provide a

Re: [CMake] Invoking CMakle outside of the build/source dir.

2011-06-06 Thread Yuri Timenkov
I guess there are cases when you can't do this. For example, on Windows you can't simply call cd - or you may have other kind of script than sh one (for example ant). Also both source dir and binary dir may be relative to current directory, therefore you don't know neither absolute nor relative

Re: [CMake] Incorrect extra MinGW link flags

2011-05-19 Thread Yuri Timenkov
May be you should use Cygwin build of CMake? On Thu, May 19, 2011 at 12:46 PM, Stiaan Gerber sger...@sun.ac.za wrote: Dear list On Windows, MinGW (gcc 4.5.2), CMake 2.8.4. I have a project building two executables. The first one builds correctly. On the second one it appears to me as

Re: [CMake] Incorrect extra MinGW link flags

2011-05-19 Thread Yuri Timenkov
variables and files in CMakeFiles. There information about system is kept (along with linker and compiler's command line templates). On Thu, May 19, 2011 at 6:55 PM, Stiaan Gerber sger...@sun.ac.za wrote: On 19/05/11 14:41, Yuri Timenkov wrote: May be you should use Cygwin build of CMake? On Thu

Re: [CMake] Debug / release build types

2011-05-17 Thread Yuri Timenkov
The best way is to use imported targets, specifying different locations for each configuration ( http://www.cmake.org/Wiki/CMake/Tutorials/Exporting_and_Importing_Targets). Or simply use OPTIMIZED and DEBUG keywords in target_link_libraries (see command help). On Tue, May 17, 2011 at 1:42 PM,

Re: [CMake] How to deprecate INSTALL project creation

2011-05-16 Thread Yuri Timenkov
Hi Alexey, just remove INSTALL() statements from your CMake files. Doesn't it help? 2011/5/16 Алексей Виноградов lexus_vinogra...@mail.ru Hi! I'm using CMake for quite a short time and I'd like to know, how to deprecate creation of INSTALL project? (I've generated project only for MS

Re: [CMake] Express Edition

2011-05-10 Thread Yuri Timenkov
Isn't CMAKE_USING_VC_FREE_TOOLS works? You can also look for files containing builder configuration in BuildDir/CMakeFiles directory. Anyways, you can write your own test to check for VC version. On Sat, May 7, 2011 at 3:37 PM, QbProg tho...@gmail.com wrote: Hello there, is there a quick

Re: [CMake] Change variable default

2011-04-28 Thread Yuri Timenkov
I think you're looking exactly for this: http://www.vtk.org/Wiki/CMake_FAQ#How_can_I_build_my_MSVC_application_with_a_static_runtime.3F It's very good use-case, but I wonder why it's called MSVC-specific. On Thu, Apr 28, 2011 at 7:23 PM, Tim Gallagher tim.gallag...@gatech.eduwrote: We do this:

Re: [CMake] Possiblity to speedup the build by compiling multiple files in one compiler invocation

2011-04-27 Thread Yuri Timenkov
However, it is well-known technique called Unity Build and has some side, effects both useful (more room for optimizer) and not (always full rebuild). You may google a bit more about it. On Apr 27, 2011 12:01 AM, Alexander Neundorf a.neundorf-w...@gmx.net wrote: On Tuesday 26 April 2011, Martin

Re: [CMake] Choosing MPI installation

2011-04-18 Thread Yuri Timenkov
Just remove these values from cache. If you always want to search in custom location, look at find_package's options to avoid searching in default locations On Apr 11, 2011 6:03 PM, Martin Vymazal martin.vyma...@vki.ac.be wrote: Hello, I'm a beginner and I apologize in case I'm asking a

Re: [CMake] rebuild

2011-04-17 Thread Yuri Timenkov
So what's your problem? :) seriously, which command do you use? You may right-click on your project and choose rebuild only project. On Apr 16, 2011 3:24 AM, Jesse Werner veee...@gmail.com wrote: I have a visual studio 2010 solution that I create with cmake. I have about 10 projects in the

Re: [CMake] find library for static libraries

2011-03-31 Thread Yuri Timenkov
Hi David, Robert, In my project I used the approach taken from FindBoost: include(MacroPushRequiredVars) macro_push_variables(CMAKE_FIND_LIBRARY_SUFFIXES) if(UNIX AND WITH_MY_LIB_STATIC) # Find only static libraries set(CMAKE_FIND_LIBRARY_SUFFIXES .a) endif(UNIX AND WITH_MY_LIB_STATIC)

Re: [CMake] Replacing compiler flags for certain project subdirectories

2011-03-31 Thread Yuri Timenkov
Actually there is a way. But you should be careful to track in what scope particular flags are defined. If you don't put a lot of stuff into directory scopes you can modify CMAKE_LANG_FLAGS and etc before calling to add_library/add_executable call. You can even completely replace them. As I

Re: [CMake] set_target_properties not setting COMPILE_DEFINITIONS?

2011-03-28 Thread Yuri Timenkov
Try prefixing definitions with -D On Mar 28, 2011 10:26 PM, David Doria daviddo...@gmail.com wrote: I have setup a list of definitions: SET(MAIN_BUILD_DEFINITIONS ${MAIN_BUILD_DEFINITIONS} UNIX;) SET(MAIN_BUILD_DEFINITIONS ${MAIN_BUILD_DEFINITIONS} PIXEL_DIMENSION=3;) I display them and

Re: [CMake] set_target_properties not setting COMPILE_DEFINITIONS?

2011-03-28 Thread Yuri Timenkov
Then it can be a problem with mixing spaces and semicolons. Look at command-line with make VERBOSE=1, this may give you some clues. On Mar 28, 2011 10:31 PM, David Doria daviddo...@gmail.com wrote: On Mon, Mar 28, 2011 at 2:28 PM, Yuri Timenkov y...@timenkov.ru wrote: Try prefixing definitions

Re: [CMake] Build problem : beginner

2011-03-27 Thread Yuri Timenkov
It is pre-built library, that is you don't need to compile it. However it is CMake-aware, therefore you can use it in your program putting find_library(CMTK) into your CMakeLists.txt. So to use this in your program you should start writing CMakeLists.txt file (as described in tutorial). The

Re: [CMake] Different CMAKE_CXX_FLAGS for different executables

2011-03-24 Thread Yuri Timenkov
Use COMPILE_FLAGS target property. Like this: set_target_properties(Exec2 PROPERTIES COMPILE_FLAGS /flag1 /flag2) You can see full list of properties in CMake documentation. Note that compiler flags may be also set for particular source file with set_source_files_properties command. On Thu, Mar

Re: [CMake] Find Library would not find the library

2011-03-09 Thread Yuri Timenkov
Hi Ankur, May be you're just missing -devel or -dev pacakges on your system? They usually provide a symlink from .so to .so.X.Y to allow ld or gcc find the correct library. Or do you really have multiple libraries versions installed simultaneously, each with headers? On Thu, Mar 10, 2011 at

Re: [CMake] CMake command line arguments

2011-03-07 Thread Yuri Timenkov
Hi, Try putting set(CMAKE_USER_MAKE_RULES_OVERRIDE MyCompilerFlags) before project() command. Then, override variable CMAKE_BUILD_TYPE_INIT (with plain unconditional set command, without putting into cache) in MyCompilerFlags.cmake file (make sure you put it into location CMake can reach).

Re: [CMake] Multiple library configurations with the same output name

2011-03-04 Thread Yuri Timenkov
Hi Alexey, Usually there are 2 ways: 1) put them into separate directories (like Debug and Release), probably specifying different output directories or 2) use different file names, say adding suffixes like D, or d8. BTW, what's the point to have different configurations in the same workspace

Re: [CMake] Parsing library list with keywords 'debug', 'optimized' and 'general' present

2011-03-02 Thread Yuri Timenkov
Hi Lori, If you have options it's better to use imported libraries. They are far more flexible and allow specifying more than just debug and optimized configurations. If you stuck with these keywords, you can look at QT4_EXTRACT_OPTIONS macro in Qt4Macros.cmake (in CMake distribution). It

Re: [CMake] Remove /D MBCS from VS projects

2011-03-01 Thread Yuri Timenkov
I think you can just add _UNICODE (or remove) to definitions, CMake will automatically determine necessary vcproj options then. On Tue, Mar 1, 2011 at 6:20 PM, gekso ev.93...@gmail.com wrote: Hello! How can I remove multi-byte character set (/D MBCS) setting from visual studio projects? I need

Re: [CMake] Splitting directory and file.

2011-03-01 Thread Yuri Timenkov
Does get_filename_component help? On Wed, Mar 2, 2011 at 6:17 AM, Pablo Zurita pzur...@gmail.com wrote: Hello everybody, I'm just getting started and I need some help dealing with strings in CMake. Basically what I have a bunch of strings such as the ones below: Main.cpp

Re: [CMake] Preferred way to use 3rd-party dependencies

2011-02-26 Thread Yuri Timenkov
software. On Fri, Feb 18, 2011 at 2:17 PM, Yuri Timenkov y...@timenkov.ru wrote: Dear all, I haven't been using CMake (and hence following) for almost 3 years and I suppose it has a big progress since 2.4. Now I'm looking for most kosher way to specify external dependencies for a particular

Re: [CMake] How too set properties on all executables

2011-02-25 Thread Yuri Timenkov
Is changing global compiler/linker flags for all executables an option? When you enable show advanced options in CMake, you should see them as CMAKE_EXE_LINKER_FLAGS_CONFIG. Also, if you want to set them initially by your build system, use set(CMAKE_USER_MAKE_RULES_OVERRIDE MyInitialFlags)

Re: [CMake] Default visual studio filters

2011-02-25 Thread Yuri Timenkov
Also you could employ SOURCES property of target to get list of files to eliminate the need of passing them to macro explicitly. On Fri, Feb 25, 2011 at 8:58 PM, Michael Jackson mike.jack...@bluequartz.net wrote: I have the following macro that I use: MACRO (cmp_IDE_SOURCE_PROPERTIES

[CMake] Preferred way to use 3rd-party dependencies

2011-02-18 Thread Yuri Timenkov
Dear all, I haven't been using CMake (and hence following) for almost 3 years and I suppose it has a big progress since 2.4. Now I'm looking for most kosher way to specify external dependencies for a particular project. The most straightforward way of specifying include dirs and libraries when

Re: [CMake] Debug libraries

2008-07-29 Thread Yuri Timenkov
On Monday 28 July 2008 22:14:51 Leopold Palomo-Avellaneda wrote: Hi, I'm not a windows user and now, sadly, I have to develop an application with Visual Studio 2005. I'm porting an application that use OpenGL, Coin3d, SoQt and Qt4.4. I have created the respective FindSoQt and FindCoin that

Re: [CMake] What's the point for making component-specific directory for CPack?

2008-07-29 Thread Yuri Timenkov
On Monday 28 July 2008 22:04:57 Doug Gregor wrote: On Mon, Jul 28, 2008 at 1:48 PM, Yuri Timenkov [EMAIL PROTECTED] wrote: On Monday 28 July 2008 21:16:25 Doug Gregor wrote: On Mon, Jul 28, 2008 at 12:45 PM, Yuri Timenkov [EMAIL PROTECTED] I suppose for RPM there could be each top

Re: [CMake] shared libraries on windows

2008-07-29 Thread Yuri Timenkov
On Tuesday 29 July 2008 14:27:44 christian wrote: Hello: I am starting with cmake in order to have my project running on both linux and windows. In my project I create a library and several console tools linked with this library. I would like to use shared libraries (.so in linux and .dll

Re: [CMake] Feature wish - constrained string values f or configuration options

2008-07-28 Thread Yuri Timenkov
On Friday 25 July 2008 12:58:42 Robert Haines wrote: On 24 Jul 2008, at 23:17, Alexander Neundorf wrote: On Thursday 24 July 2008, Robert Haines wrote: On 18 Jul 2008, at 18:40, Bill Hoffman wrote: ... However, it is not that easy to implement, since the basic type in CMake is a

Re: [CMake] can a dependency be added to a specific test (CXX Test)?

2008-07-23 Thread Yuri Timenkov
On Wednesday 23 July 2008 07:50:18 Edward Flanigan wrote: I am trying to create a test. The traditional way uses the command : add_test (simpleTest executable) I want to know if there is any way to add a dependency to a specific test? CMake does not recognize simpleTest as a target. For

Re: [CMake] CPACK installation path configuration

2008-07-23 Thread Yuri Timenkov
CPACK_PACKAGING_INSTALL_PREFIX to / (or CPACK_SET_DESTDIR to true). Again, Thanks, Hans On 7/23/08 2:29 AM, Yuri Timenkov [EMAIL PROTECTED] wrote: What is your CMAKE_INSTALL_PREFIX? And where your product installs with make install command? Did you use CPACK_SET_DESTDIR? On Wednesday 23 July 2008 00:51:46

Re: [CMake] CTest + unit test frameworks integration

2008-07-21 Thread Yuri Timenkov
On Friday 18 July 2008 22:38:26 Alexander Neundorf wrote: On Friday 18 July 2008, Yuri Timenkov wrote: Does anyone have an experience in integrating Unit test frameworks with CTest? AFAIK many of such frameworks provide means to register tests and test cases, and it would be nice to make

Re: [CMake] find_package New features request

2008-07-21 Thread Yuri Timenkov
On Monday 21 July 2008 16:21:43 Alin M Elena wrote: Hi, I try to rewrite a module BLAS. After an analysis I realised that find_package as it stands now may not be enough for the functionality that I need. for BLAS it happens to be found in many forms supplied by different vendors. So I

Re: [CMake] Staticly Link to VC++ Runtime

2008-07-18 Thread Yuri Timenkov
On Friday 18 July 2008 13:33:59 Mike Arthur wrote: I'm trying to distribute my application to Windows users and am getting some fairly horrendous grief with manifests. Can anyone advise how I'd get CMake to statictly link against the msvc*.dll files that my application needs when compiled

[CMake] CTest + unit test frameworks integration

2008-07-18 Thread Yuri Timenkov
Does anyone have an experience in integrating Unit test frameworks with CTest? AFAIK many of such frameworks provide means to register tests and test cases, and it would be nice to make ctest aware of such things, because it's not good to make changes in multiple places when I add new test. I

Re: [CMake] static libs and more

2008-07-17 Thread Yuri Timenkov
On Thursday 17 July 2008 23:00:15 Alin M Elena wrote: Hi, 1. Few days ago maybe weeks on the list I have seen a discussion about static/dynamic linking. One of the solution proposed there to achieve a static linking was if (UNIX) set(CMAKE_FIND_LIBRARY_SUFFIXES .a;.so) endif(UNIX)

Re: [CMake] Using try_compile before project() command

2008-07-16 Thread Yuri Timenkov
On Wednesday 16 July 2008 16:20:30 Bill Hoffman wrote: Carminati Federico wrote: Hello, my use case is similar. My package depends on another one that can be installed with different compiler choices. So the first action I take is always to check the compiler used to install the other

[CMake] Using try_compile before project() command

2008-07-15 Thread Yuri Timenkov
I want to tune initial compile and linker flags to put into cache. in main CMakeLists.txt: # Override default Compiler flags set(CMAKE_USER_MAKE_RULES_OVERRIDE MyCompilerFlags) project(MyProject) in MyCompilerFlags.cmake: check_cxx_linker_flag(-Wl,--warn-unresolved-symbols

Re: [CMake] Using try_compile before project() command

2008-07-15 Thread Yuri Timenkov
came from, when you build with VERBOSE=1). Overriding CMake defaults seems most clear way, because user will see global settings in GUI and target-specific or source files-specific flags at the right place in CMakeLists.txt. On 15 Jul 2008, at 15:56, Yuri Timenkov wrote: I want to tune

Re: [CMake] Using try_compile before project() command

2008-07-15 Thread Yuri Timenkov
On Tuesday 15 July 2008 20:28:27 Yuri Timenkov wrote: On Tuesday 15 July 2008 20:01:52 Bill Hoffman wrote: Carminati Federico wrote: Hello Yuri, I posted a similar question some time ago. There seems to be no way to chose the compiler within the CMakeList.txt, because you can do

Re: [CMake] An example of DEFINE_SYMBOL please

2008-07-10 Thread Yuri Timenkov
On Monday 07 July 2008 19:59:24 Mehdi Rabah wrote: Hi, I need to set multiple symbols in one of my target of my project. I can't use add_definitions because I don't want to define those variable for all my targets, so I tried custom properties. set_target_properties( target PROPERTIES

Re: [CMake] Patch: Add NO_CACHE option to find_xxx commands

2008-07-08 Thread Yuri Timenkov
On Monday 07 July 2008 22:04:53 Enrico Scholz wrote: Miguel A. Figueroa-Villanueva [EMAIL PROTECTED] writes: I would like to propose the addition of a NO_CACHE keyword to the find_xxx commands that would treat VAR as a non-cached variable. Better wolution would be the equivalent of

Re: [CMake] DLL runtime error R6034

2008-07-08 Thread Yuri Timenkov
On Tuesday 08 July 2008 13:38:25 Mehdi Rabah wrote: Hi, Does anyone had this error http://msdn.microsoft.com/en-us/library/ms235560(VS.80).aspx while using a DLL built this cmake? My application (also built with cmake) works fine on Release mode, I get this error only in Debug

Re: [CMake] An example of DEFINE_SYMBOL please

2008-07-07 Thread Yuri Timenkov
On Monday 07 July 2008 19:59:24 Mehdi Rabah wrote: Hi, I need to set multiple symbols in one of my target of my project. I can't use add_definitions because I don't want to define those variable for all my targets, so I tried custom properties. set_target_properties( target PROPERTIES