[CMake] cpack_add_component

2019-03-11 Thread Micha Renner
In CPack I can add a component with cpack_add_component and describe the component with the additional arguments of the macro. I can also describe the component if I use the varibales of type CPACK_COMPONENT__XXX (e.g. CPACK_COMPONENT__HIDDEN). So which one is the right way? Or doesn't matter

[CMake] CPack and WIX: Preselected components

2019-01-17 Thread Micha Renner
With the NSIS generator I can create a dialog with a drop_down list with two elements default and developer. Default is selected by default when the dialog starts, so the default parts of the package are installed. Selecting developer the devlop parts are installed and the default files not. How

Re: [CMake] WINDOWS_EXPORT_ALL_SYMBOLS

2016-01-27 Thread Micha Renner
Am Mittwoch, den 27.01.2016, 10:27 -0500 schrieb Bill Hoffman: > On 1/26/2016 12:51 PM, Bill Hoffman wrote: > > > > I am running the community edition... Maybe there is some > > difference > > with express? > One other question, did you build 64 or 32 bit? 64-bit. Michael -- Powered by

[CMake] CMAKE_PUSH_CHECK_STATE()

2015-08-21 Thread Micha Renner
Hallo, CMAKE_PUSH_CHECK_STATE() CMAKE_POP_CHECK_STATE() affect CMAKE_REQUIRED_FLAGS, CMAKE_REQUIRED_DEFINITIONS, CMAKE_REQUIRED_LIBRARIES and CMAKE_REQUIRED_INCLUDES. Maybe one can extend CMAKE_PUSH_CHECK_STATE() CMAKE_POP_CHECK_STATE() to controll CMAKE_EXTRA_INCLUDE_FILES also. Michael

[CMake] FIND_LIBRARY_USE_LIB64_PATHS on Win64

2015-06-22 Thread Micha Renner
Hi, does FIND_LIBRARY_USE_LIB64_PATHS work with Windows64. From this ... https://public.kitware.com/Bug/view.php?id=15301#c37449 ...one might conclude it does, but on my Win64-System PROJECT(T LANGUAGES C) CMAKE_MINIMUM_REQUIRED(VERSION 3.0) GET_PROPERTY(r22 GLOBAL PROPERTY

[CMake] Find a 64-bit library

2015-06-03 Thread Micha Renner
Hallo, I want to find the library MSImg32 on a Windos 8.1 system 64-bit. The library is located here: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib\x64 \MSImg32.Lib C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib\MSImg32.Lib C:\Program Files (x86)\Windows

[CMake] generator expressions

2015-04-08 Thread Micha Renner
Hi, I try to understand the concept of generator expressions with little avail. For the current project I thought, I could use them in combination with TARGET_INCLUDE_DIRECTORIES. Instead of writting IF(t1) TARGET_INCLUDE_DIRECTORIES(cTest PRIVATE path/to/h1 PRIVATE path/to/h2) ELSE(t1)

[CMake] install(files...

2015-02-17 Thread Micha Renner
Hello, In the manual the install(FILES...) command is described as this: install(FILES|PROGRAMS files... DESTINATION dir [PERMISSIONS permissions...] [CONFIGURATIONS [Debug|Release|...]] [COMPONENT component] [RENAME name] [OPTIONAL]) So what is the meaning of

[CMake] CMake Vs 2012 Express 64bit

2014-12-10 Thread Micha Renner
Hi all, is there a way that CMake create solution files for 64-bit targets? (Visual Studio 2012 Express) Greetings Michael -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to

Re: [CMake] Unclear warning

2014-12-09 Thread Micha Renner
Am Dienstag, den 09.12.2014, 01:52 -0800 schrieb Alan W. Irwin: Hi Nils: I have never understood CMP0054 until now when I read your above clear explanation. So thanks very much for that! Same from me. Excellent work. It makes things clearer. Greetings Michael -- Powered by

[CMake] Unclear warning

2014-12-08 Thread Micha Renner
Hi, what does this message mean? The ASM_MASM compiler identification is MSVC CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.1/Modules/CMakeFindBinUtils.cmake:33 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run cmake

[CMake] CMake and 64-bit Systems

2014-12-04 Thread Micha Renner
Hallo, does CMake run on 64-bit OS (e.g. Ubuntu 14.10 64-bit) without problems or are there some workarounds necessary to get it run? If so, is there a description available? Greetings Michael -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at:

[CMake] The target property LOCATION

2014-05-27 Thread Micha Renner
Hi, FIND_PACKAGE(TLib) GET_TARGET_PROPERTY(Result MiG::TLib LOCATION) results in /usr/local/lib/libTLib.so.3.4.1 I would expect /usr/local/lib/libTLib.so Is this a bug or a feature? Micha -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at:

[CMake] CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE

2014-03-31 Thread Micha Renner
Hallo, The Documentation says: Automatically add the current source- and build directories to the INTERFACE_INCLUDE_DIRECTORIES. How can I get this information? SET(CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE ON) ADD_LIBRARY(TLib1 SHARED tlib1.c tlib1.h)

[CMake] Index CMake strings

2014-03-13 Thread Micha Renner
Hallo, is it possible to index CMake strings. In C it would something like this: char c = Str[3]; Micha -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake

Re: [CMake] Redirect output from add_custom_target()

2013-04-04 Thread Micha Renner
I would try add_custom_target( ${doc_target_name} DEPENDS ${generated_conf} COMMAND ${doxygen_exe} ${generated_conf} 2 filename WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMENT Generating documentation using Doxygen )

[CMake] INCLUDE_DIRECTORIES (command vs target property)

2012-10-22 Thread Micha Renner
. INCLUDE_DIRECTORIES(general_include_directories) # Projet A ... SET_TARGET_PROPERTIES(ProA PROPERTIES INCLUDE_DIRECTORIES ${ProjAIncludeDirs}) ... # Projet B ... SET_TARGET_PROPERTIES(ProB PROPERTIES INCLUDE_DIRECTORIES ${ProjBIncludeDirs}) ... Grettings Micha Renner -- Powered

[CMake] CMAKE_C_COMPILER_VERSION

2012-09-20 Thread Micha Renner
Is the intention of CMAKE_[C|CXX]_COMPILER_VERSION to check the [C|C ++]-compiler version platform independent? Greetings Micha -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and

[CMake] GENERATE_EXPORT_HEADER

2012-09-05 Thread Micha Renner
For static libraries the macro GENERATE_EXPORT_HEADER produce an output like this one: ... #else # ifndef CTEST_EXPORT #ifdef cTest_EXPORTS /* We are building this library */ # define CTEST_EXPORT #else /* We are using this library */ # define CTEST_EXPORT #

[CMake] Link errors on Wiki/CMake

2012-07-17 Thread Micha Renner
The following links of www.cmake.org/Wiki/CMake generate 404 Errors How CMake simplifies the build process by Bruno Abinader Part 1 - Basic build system : http://www.abinader.com.br/bruno/how-cmake-simplifies-the-build-process-part-1-basic-build-system/ Howto use cmake with C/C++ projects:

Re: [CMake] Visual Studio rebuilding ZERO_CHECK

2012-06-13 Thread Micha Renner
Am Mittwoch, den 13.06.2012, 14:51 +0200 schrieb Robert Carnecky: Hello, My Visual Studio 2010 is constantly prompting me to build ZERO_CHECK every time I try to run my program, even though nothing has changed. Is there a workaround for this? No, that is the current situation. This

Re: [CMake] add_custom and files generated into subdirectories

2012-04-12 Thread Micha Renner
I guess, this is one of the rare cases where one need: SET_SOURCE_FILES_PROPERTIES(Foo.cpp PROPERTIES GENERATED TRUE) Greetings Micha Am Mittwoch, den 11.04.2012, 11:18 -0500 schrieb William R. Otte: Hi - I have a question about resolving dependencies when add_custom is used to

Re: [CMake] CheckIncludeFiles problem

2012-02-02 Thread Micha Renner
May be, there is an error when the compiler process the header file. During CHECK_INCLUDE_FILES CMake invokes the Compiler to check whether the header file works fines. In most cases reason is a missing additional header files (but not always). So, check the log files of CMake in the binary

Re: [CMake] Anybody succeeded with VS/NASM?

2011-10-19 Thread Micha Renner
Am Dienstag, den 18.10.2011, 13:47 +0400 schrieb Vladimir Chebotarev: Hi, Micha. When is it going to get fixed? I dont't know. Can I help with it? I would appreciate it, but I'm not a maintainer. #12465 of the bugtracker had been closed now. Please look here

Re: [CMake] Anybody succeeded with VS/NASM?

2011-10-18 Thread Micha Renner
Am Montag, den 17.10.2011, 21:42 +0400 schrieb Vladimir Chebotarev: Hi. I'm trying to compile .cpp file along with .asm on Visual Studio. It correctly finds NASM assembler, but .asm file seems not to be included to build. Have tried VS 2005 and 2010, cmake 2.8.6 and 2.8.6-20111015. It

Re: [CMake] Does find_library check that a found library does in fact link?

2011-09-29 Thread Micha Renner
Am Donnerstag, den 29.09.2011, 09:22 +0200 schrieb Hendrik Sattler: Zitat von Michael Wild them...@gmail.com: Just a few of my thoughts on this: Same for me. - There are several ways to handle dead symlinks: 1. Don't check, let the linker complain (status quo) 2. Check whether

Re: [CMake] Does find_library check that a found library does in fact link?

2011-09-29 Thread Micha Renner
Am Donnerstag, den 29.09.2011, 10:32 +0200 schrieb Hendrik Sattler: Zitat von Micha Renner micha.ren...@t-online.de: Am Donnerstag, den 29.09.2011, 09:22 +0200 schrieb Hendrik Sattler: Zitat von Michael Wild them...@gmail.com: Just a few of my thoughts on this: Same for me

Re: [CMake] Nested Project()

2011-08-16 Thread Micha Renner
Am Montag, den 15.08.2011, 22:43 +0200 schrieb klaas.holwerda: Hi, I have several nested directories, and each directory contains a CMakeLists.txt file. And most start with PROJECT( ) Where xxx is some name for what I like to contains some targets. In VC it is possible to create

[CMake] masm msvc

2011-08-15 Thread Micha Renner
This script... # Copy paste from CMake Wiki # Works only if CMake runs in the Visual Studio DOS Window SET(MASMFound FALSE) # test whether it is a x86 machine and masm is available IF(${CMAKE_SYSTEM_PROCESSOR} MATCHES x86) ENABLE_LANGUAGE(ASM_MASM)

[CMake] .S files and assembler

2011-08-10 Thread Micha Renner
Hi, in http://www.cmake.org/pipermail/cmake/2009-November/033346.html I found the line: If the file (.S) needs to be preprocessed, set the LANGUAGE source file property to C, this should work in most cases for now. Is this still the way to process .S-files. In 2009 it sounded so temporary. And

Re: [CMake] Easing the pain with Visual Studio 2010 and CMake

2011-08-04 Thread Micha Renner
Am Donnerstag, den 04.08.2011, 10:05 +0200 schrieb Thomas Sondergaard: It is a bit of a pain to work with Visual Studio 2010 and CMake due to this bug: http://gccxml.org/Bug/view.php?id=11258 (VS 2010 CMake plugin is broken). It doesn't look like much progress is being made with fixing this

Re: [CMake] ADD_CUSTOM_COMMAND and Dependencies

2011-08-01 Thread Micha Renner
Am Montag, den 25.07.2011, 15:49 +0200 schrieb Michael Wild: On 07/25/2011 03:24 PM, Micha Renner wrote: There is following sequence: ADD_EXECUTEABLE(generator gen.c) ADD_CUSTOM_COMMAND(OUTPUT tlib.h COMMAND generator tlib.h) ADD_LIBRARY(tlib tlib.c tlib.h

[CMake] install(script ... and memory loss

2011-07-26 Thread Micha Renner
In a CMakeLists file, there is this command: INSTALL(SCRIPT tInstall.txt) During processing tInstall.txt none of global variables (e.g. MSVC, CMAKE_SHARED_LIBRARY_SUFFIX ...) has a value. Is this a bug or a feature? Greetings Micha ___ Powered by

Re: [CMake] install(script ... and memory loss

2011-07-26 Thread Micha Renner
This is a really good idea, thank you. configure_file(${CMAKE_CURRENT_SOURCE_DIR}/tInstall.txt.in ${CMAKE_CURRENT_BINARY_DIR}/tInstall.txt) install(SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/tInstall.txt) Micha ___ Powered by www.kitware.com

[CMake] ADD_CUSTOM_COMMAND and Dependencies

2011-07-25 Thread Micha Renner
There is following sequence: ADD_EXECUTEABLE(generator gen.c) ADD_CUSTOM_COMMAND(OUTPUT tlib.h COMMAND generator tlib.h) ADD_LIBRARY(tlib tlib.c tlib.h) The question: Is it sure that ADD_EXECUTEABLE is invoked before the library is build or is here an ADD_DEPENDENCIES(tlib generator)

Re: [CMake] Checking SoVersion of Shared Library

2011-05-12 Thread Micha Renner
Am Donnerstag, den 12.05.2011, 11:15 +0300 schrieb tiantik: Hi CMake's members, My project has two parts: shared library and executable. The soversion of shared library is libxxx.so.1.2.3. Now, the cmakelist.txt of executable will check this soversion of shared library as . How do I do this

Re: [CMake] Parameters of functions

2011-05-12 Thread Micha Renner
Am Donnerstag, den 12.05.2011, 17:10 +0200 schrieb Michael Wild: I agree, that this behaviour is due the fact that the parameter name var hides the parent-scope variable var, but then ${${var}} should IMHO result in an error or warning message. Essentially, what this does inside the function

[CMake] Parameters of functions

2011-05-11 Thread Micha Renner
This is funny: FUNCTION(build var) MESSAGE(STATUS var: ${${var}}) ENDFUNCTION(build) SET(var red blue yellow green) build(var) Output: -- var: var SET(varX red blue yellow green) build(varX) Output: -- var: redblueyellowgreen Greetings Micha

[CMake] gobject-introspection

2011-05-06 Thread Micha Renner
Are there any plans to support gobject-introspection? Micha ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at:

Re: [CMake] problems with CMAKE_CFG_INTDIR in initial cache

2011-04-04 Thread Micha Renner
Am Montag, den 04.04.2011, 21:22 +0200 schrieb Dominik Szczerba: CMAKE_CFG_INTDIR This value is evaluated by the native build system - this variable is suitable only for use in command lines that will be evaluated at build time (after the cmake run). Please see:

[CMake] IF Matches

2011-03-03 Thread Micha Renner
Hello, IF(bgdgbBromNN MATCHES Brom) is true, but IF(Brom MATCHES bgdgbBromNN) is false. Should be same, or? Greetings Micha ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] Is there an elegant way to get list of object files participating into a library?

2011-02-28 Thread Micha Renner
Am Sonntag, den 27.02.2011, 21:38 + schrieb Pere Mato Vila: Hi, For the Windows platform I am generating the .DEF files with all defined symbols to be exported. For this I need to get the list of all object files (.obj) participating into a library. The question is whether this

Re: [CMake] How to set definitions

2011-02-18 Thread Micha Renner
ADD_DEFINITION sets the definitions for a compiler without target binding. This means once it is used all subsequent targets and subdirectories have these definitions ADD_DEFINITIONS(-DHAVE_CONFIG_H -DEXCLUDE ALL_PINGUINS) COMPILE_DEFINITIONS is a property which is used frequently with

[CMake] find_package, quiet and yyyConfig files

2011-02-10 Thread Micha Renner
There is a library, which is described with these TLIBConfig.cmake, TLIBConfigVersion.cmake files (The version of the library is 2.1). The library is used by FIND_PACKAGE(TLIB 2.30 QUIET) Is there a way to check the version of the library after FIND_PACKAGE? E.g., if TLIB_VERSION would have a

Re: [CMake] find_package, quiet and yyyConfig files

2011-02-10 Thread Micha Renner
Am Donnerstag, den 10.02.2011, 15:12 +0100 schrieb Michael Hertling: AFAICS from the documentation in [1], FIND_PACKAGE() is not obliged to set TLIB_VERSION et al. if no acceptable TLIBConfig[Version].cmake has been found, and that's quite reasonable: Suppose you've multiple TLIB

[CMake] GTK2 Module

2011-02-10 Thread Micha Renner
In FindGTK2.cmake there are some examples how to use this module find_package(GTK2 2.6 REQUIRED gtk) generates: CMake Warning (dev) at CMakeLists.txt:75 (find_package): Policy CMP0011 is not set: Included scripts do automatic cmake_policy PUSH and POP. Run cmake --help-policy CMP0011 for

Re: [CMake] New warnings in CMake 2.8.4-rc2

2011-02-02 Thread Micha Renner
Am Mittwoch, den 02.02.2011, 12:00 +0100 schrieb Emmanuel Blot: Hello, How to disable the new warnings CMake 2.8.4-rc2 emits, such as the following ones? I support this question too. There should be a way to switch off this feature of CMake, especially when variables are used uninitialized.

Re: [CMake] New warnings in CMake 2.8.4-rc2

2011-02-02 Thread Micha Renner
Am Mittwoch, den 02.02.2011, 09:49 -0500 schrieb Brad King: On 2/2/2011 9:21 AM, Michael Jackson wrote: On Feb 2, 2011, at 9:08 AM, Brad King wrote: cmake --help: --warn-uninitialized= Warn about uninitialized values. --warn-unused-vars = Warn about unused

[CMake] add_custom_command and generated true

2011-01-25 Thread Micha Renner
Recently, I learned that ADD_CUSTOM_COMMAND generated the property GENERATED TRUE for the generated file. Somehow I have trouble in this situation: In a top level CMakeLists file a source file, blue.c, is generated. This file should be used in a subdirectory with its own CMakeLists file.

Re: [CMake] add_custom_command and generated true

2011-01-25 Thread Micha Renner
Am Dienstag, den 25.01.2011, 15:34 +0100 schrieb Michael Hertling: On 01/25/2011 10:17 AM, Micha Renner wrote: Recently, I learned that ADD_CUSTOM_COMMAND generated the property GENERATED TRUE for the generated file. Somehow I have trouble in this situation: In a top level

Re: [CMake] How to make a ProjectConfig.cmake

2011-01-20 Thread Micha Renner
Am Donnerstag, den 20.01.2011, 15:36 -0500 schrieb Brad King: On 01/20/2011 01:36 PM, Alexander Neundorf wrote: On Thursday 20 January 2011, Brad King wrote: This all has been documented on the Wiki for years: http://www.cmake.org/Wiki/CMake_2.6_Notes It is more of a

[CMake] Bug #11258

2011-01-14 Thread Micha Renner
They have a question: https://connect.microsoft.com/VisualStudio/feedback/details/634469/vs-2010-yields-blocking-error-dialog-when-a-macro-tries-to-stop-the-build-vs-2008-did-not Maybe you can answer. Greetings Micha ___ Powered by www.kitware.com

Re: [CMake] FLTKConfig.cmake on Microsoft Windows

2010-12-30 Thread Micha Renner
Am Mittwoch, den 29.12.2010, 20:03 +0100 schrieb Julia Jacobson: Thanks for your answer. The file FindFLTK.cmake exists within my CMake installation, but I still get an error message: CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91

Re: [CMake] FLTKConfig.cmake on Microsoft Windows

2010-12-30 Thread Micha Renner
Am Donnerstag, den 30.12.2010, 11:01 +0100 schrieb Julia Jacobson: What grieves me is that the CMake code I had prepared in linux looked really nice (without any absolute paths and so on), but the file for Windows doesn't. I think, the problem with FindFLTK is, that it has never been tested

Re: [CMake] FLTKConfig.cmake on Microsoft Windows

2010-12-29 Thread Micha Renner
Am Mittwoch, den 29.12.2010, 12:13 +0100 schrieb Julia Jacobson: Hello everybody out there using CMake, A project I would like to build with CMake uses FLTK. The CMakeLists.txt file references to FLTK: ... SET(FLTK_INCLUDE_DIR C:/Programs/fltk) FIND_PACKAGE(FLTK REQUIRED) ... However,

[CMake] CMAKE_SHARED_LIBRARY_PREFIX

2010-12-28 Thread Micha Renner
Hello, I always thought that CMAKE_SHARED_LIBRARY_PREFIX should have the value lib (Linux). On my system it is blank. Is there a specific reason for that? Greetings Micha ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] CMAKE_SHARED_LIBRARY_PREFIX

2010-12-28 Thread Micha Renner
Am Dienstag, den 28.12.2010, 07:46 -0500 schrieb David Cole: What's the context of your question? When processing a CMakeLists file, on Linux, the typical value is lib. Aha. The following small script... PROJECT(T) CMAKE_MINIMUM_REQUIRED(VERSION 2.8.3) MESSAGE(STATUS

Re: [CMake] CMAKE_SHARED_LIBRARY_PREFIX

2010-12-28 Thread Micha Renner
Am Dienstag, den 28.12.2010, 08:51 -0500 schrieb David Cole: CMAKE_SHARED_LIBRARY_PREFIX only has one F Shame on me. Nevertheless, thank you. Greetings Micha ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] Visual Studio 2010 Generator Missing?

2010-12-28 Thread Micha Renner
Just a small piece of feedback. All the other Visual Studio generators are in order, ie, VS 6, VS 7, VS 8, VS 9 so it made sense to look for VS 10 below VS 9. Was there a specific reason for putting VS 10 above VS 6 and thus out of order? The only reason I can think is that VS 10 starts

Re: [CMake] Dependency rule not included

2010-12-08 Thread Micha Renner
Am Mittwoch, den 08.12.2010, 14:55 +0100 schrieb Vivien Delmon: CMAKE_MINIMUM_REQUIRED(VERSION 2.8) ADD_CUSTOM_COMMAND(OUTPUT toto.h toto.c COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/create_totoc_totoh.sh ) SET_SOURCE_FILES_PROPERTIES(toto.h toto.c PROPERTIES GENERATETED TRUE) See:

Re: [CMake] find_package with ###Config.cmake

2010-12-06 Thread Micha Renner
Andreas, Michael - thanks, you helped me lot. Greetings Micha ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at:

Re: [CMake] find_package with ###Config.cmake

2010-12-03 Thread Micha Renner
Am Freitag, den 03.12.2010, 08:45 +0100 schrieb Andreas Pakulat: On 03.12.10 07:11:23, Micha Renner wrote: There is a small library TLib which is installed like this Install the project... -- Install configuration: Debug -- Installing: /usr/local/lib/libTLibd.so -- Installing: /usr

Re: [CMake] find_package with ###Config.cmake

2010-12-03 Thread Micha Renner
Meanwhile, with 2.8.3 to be exact, the warning message issued by CMake if a version file is found but the requested version doesn't suit is: Could not find a configuration file for package ... that is compatible with requested version The following configuration files were

[CMake] find_package with ###Config.cmake

2010-12-02 Thread Micha Renner
There is a small library TLib which is installed like this Install the project... -- Install configuration: Debug -- Installing: /usr/local/lib/libTLibd.so -- Installing: /usr/local/lib/TLib/TLibExport.cmake -- Installing: /usr/local/lib/TLib/TLibExport-debug.cmake -- Installing:

Re: [CMake] set CMAKE_INSTALL_PREFIX in CMakeLists

2010-11-23 Thread Micha Renner
Am Dienstag, den 23.11.2010, 14:01 +0100 schrieb tomas...@sbc.su.se: Dear Cmake users, 1) I am trying to set CMAKE_INSTALL_PREFIX in the CMakeLists file with SET(CMAKE_INSTALL_PREFIX, my/path) ^ No comma! greetings Micha

Re: [CMake] set CMAKE_INSTALL_PREFIX in CMakeLists

2010-11-23 Thread Micha Renner
Am Dienstag, den 23.11.2010, 15:01 +0100 schrieb Michael Wild: On 11/23/2010 02:33 PM, Micha Renner wrote: Am Dienstag, den 23.11.2010, 14:01 +0100 schrieb tomas...@sbc.su.se: Dear Cmake users, 1) I am trying to set CMAKE_INSTALL_PREFIX in the CMakeLists file with SET

Re: [CMake] Run compiler through another tool?

2010-11-17 Thread Micha Renner
Am Mittwoch, den 17.11.2010, 15:07 +0530 schrieb Hariharan: Is it possible to run the compiler and linker through another command, say time or a custom script? In other words, I want the compile and link steps to run command gcc and command ld. In this case you have to work with a combination

Re: [CMake] CMake 2.8.3 available for download

2010-11-04 Thread Micha Renner
Unpacking cmake-2.8.3.tar.gz, cmake-2.8.3-Linux-i386.tar.gz results in the following error message of the archive manager: gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now cmake-2.8.3-Linux-i386.tar.Z is ok. Greetings Micha

Re: [CMake] CMake 2.8.3 available for download

2010-11-04 Thread Micha Renner
Am Donnerstag, den 04.11.2010, 08:38 +0100 schrieb Eric Noulard: 2010/11/4 Micha Renner micha.ren...@t-online.de: Unpacking cmake-2.8.3.tar.gz, cmake-2.8.3-Linux-i386.tar.gz results in the following error message of the archive manager: gzip: stdin: not in gzip format tar: Child returned

[CMake] ADD_TEST and WORKING_DIRECTORY

2010-10-20 Thread Micha Renner
Is there a way to specify a WORKING_DIRECTORY for ADD_TEST, similar ADD_CUSTOM_COMMAND? Greetings Micha ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep

Re: [CMake] CMake 2.8.3-rc1 ready for testing!

2010-09-19 Thread Micha Renner
Here is a small one. INSTALL(FILES ${CMAKE_BINARY_DIR}/CTest.conf DESTINATION /usr/local) always results in this warning: 1 -- Install configuration: Debug 1 CMake Warning (dev) at cmake_install.cmake:31 (list): 1Syntax error in cmake code at 1 1

Re: [CMake] CMake 2.8.3-rc1 ready for testing!

2010-09-17 Thread Micha Renner
http://public.kitware.com/Bug/view.php?id=3796 ) Oh thank you, that should be the next topic (long awaited) what I wanted to test. Now it has to wait. I didn't realize this correlation. In the meantime, to get rid of the problem for now, turn the new feature off. In the top level

Re: [CMake] CMake 2.8.3-rc1 ready for testing!

2010-09-16 Thread Micha Renner
I get the message CMakePredefinedTarget not available and then VS message: Cannot load CMakePredefinedTarget project. What does this mean for the work with CMake and VS2010 Express? Greetings Micha ___ Powered by www.kitware.com Visit other

Re: [CMake] CMake Problem with Visual Studio 2008 Express and Windows 7

2010-09-14 Thread Micha Renner
There were and there are problems with CMake and the Visual Studio Express Versions. See: http://www.cmake.org/pipermail/cmake/2010-May/036962.html (macros) I use the 2010 Express Version, which works astonishingly good. There are still some minor problems (see

[CMake] Anjuta

2010-08-19 Thread Micha Renner
Does CMake support Anjuta? Greetings Micha ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at:

Re: [CMake] CMake 2.8.2 RC1 - Visual Studio Express

2010-06-21 Thread Micha Renner
Am Freitag, den 18.06.2010, 10:46 -0400 schrieb David Cole: I am guessing (hopefully you will confirm) that you are using the VS Express 2010 version? (As opposed to an earlier version of VS Express...?) Yes, VS Express 2010 only. We fixed an issue that we reproduced using another

Re: [CMake] CMake 2.8.2 RC1 - Visual Studio Express

2010-06-16 Thread Micha Renner
Am Mittwoch, den 16.06.2010, 06:56 -0400 schrieb David Cole: On Wed, Jun 16, 2010 at 1:26 AM, Micha Renner micha.ren...@t-online.de wrote: There still some problems with the Express version of VS I started the gui-version of CMake and generated the solution files

[CMake] The find_xxx family and VS

2010-06-15 Thread Micha Renner
It seems, that CMake can detect the MSVC specific headers and libraries only, if it runs within Visual Studio. For example: FIND_FILE(STD_FILE stdio.h), FIND_PATH(STD_PATH stdio.h) or FIND_LIBRARY(LIB_PATH comctl32) results in NOT-FOUND, if CMake is run outside the IDE with an empty

Re: [CMake] The find_xxx family and VS

2010-06-15 Thread Micha Renner
Am Dienstag, den 15.06.2010, 14:12 +0200 schrieb Micha Renner: It seems, that CMake can detect the MSVC specific headers and libraries only, if it runs within Visual Studio. For example: FIND_FILE(STD_FILE stdio.h), FIND_PATH(STD_PATH stdio.h) or FIND_LIBRARY(LIB_PATH comctl32) results

[CMake] CMake 2.8.2 RC1 - Visual Studio Express

2010-06-15 Thread Micha Renner
There still some problems with the Express version of VS I started the gui-version of CMake and generated the solution files (empty build directory). No errors. First run in the IDE generates a lot of CMake errors (see appendix). Another hit on the F7 key: Most errors are gone. Okay, I can live

[CMake] VS-C++ Express Version

2010-05-14 Thread Micha Renner
There are some things in the cooperation of CMake and the Visual Studio Express-version, which which bothers me. Each change in a CMakeLists.txt file results in a message of VS Express like this: The filter file of your project changed outside VS! Do you want reload it? I could live with this,

Re: [CMake] Visual Studio 2010 Express

2010-05-11 Thread Micha Renner
Am Montag, den 10.05.2010, 12:15 -0400 schrieb Bill Hoffman: On 5/10/2010 12:10 PM, Micha Renner wrote: Running this CMake script... For VS 2010 express you should need a fix in git master, and can be fixed for any 2.8.1 install. The fix is to copy the Modules/CMakeVS10FindMake.cmake

[CMake] Visual Studio 2010 Express

2010-05-10 Thread Micha Renner
Running this CMake script... PROJECT(T) CMAKE_MINIMUM_REQUIRED(VERSION 2.8) INCLUDE(CheckFunctionExists) INCLUDE(CheckIncludeFile) INCLUDE(CheckTypeSize) INCLUDE(CheckSymbolExists) ENABLE_TESTING() TRY_RUN(_result _compileResult ${CMAKE_CURRENT_BINARY_DIR}

[CMake] Find_Library with Windows libs

2010-04-20 Thread Micha Renner
Hello -, I want to use Msing32-library on Windows FIND_LIBRARY(MSIMG32_LIBRARY Msimg32) If I run the cmake-gui it cannot find the library. There are no problems if cmake runs inside the visual studio. Are there some enviroment variables I have to set for the gui-version? Micha

Re: [CMake] I'm confused with Find*.cmake and *-config.cmake

2010-04-19 Thread Micha Renner
Am Montag, den 19.04.2010, 16:07 -0400 schrieb Benoit Thomas: Hello, I'm using an external library which is already compiled. I have wrapped the library in a MyLib.cmake and use it in cmake as an imported library. It works fine, but since the include line uses relative path, it changes

Re: [CMake] rename of target on install

2010-03-26 Thread Micha Renner
Am Freitag, den 26.03.2010, 08:33 +0100 schrieb Michael Wild: On 25. Mar, 2010, at 23:41 , Hai Nguyen wrote: Hi all, Is there a way for me to rename the executable during the install? I'm using the same CMakeList.txt to build several versions and I'd like to install them to different

Re: [CMake] CMake 2.8.1 RC 4 is ready to try

2010-03-08 Thread Micha Renner
Am Montag, den 08.03.2010, 09:30 -0500 schrieb Bill Hoffman: Micha Renner wrote: Yes, there are no problems with this version. Did you download some other file (perhaps one with Windows line endings)? It seems so. Zip-files have Windows line endings? http://www.cmake.org

Re: [CMake] CMake 2.8.1 RC 4 is ready to try

2010-03-07 Thread Micha Renner
Hi Micha: What specific URL did you download? From http://www.cmake.org/files/v2.8/?C=M;O=D I downloaded the cmake-2.8.1-rc4.zip My previous data was for 2.8.1-rc3. Just now I downloaded http://www.cmake.org/files/v2.8/cmake-2.8.1-rc4.tar.gz. Bootstrap in source tree (and subsequent

Re: [CMake] CMake 2.8.1 RC 4 is ready to try

2010-03-06 Thread Micha Renner
Am Freitag, den 05.03.2010, 22:39 +0100 schrieb Eric Noulard: 2010/3/5 Bill Hoffman bill.hoff...@kitware.com: CMake 2.8.1 RC 4 is ready to try: http://www.cmake.org/files/v2.8/?C=M;O=D Please try your projects with it. If you find any issues, let me know. I think this is about it.

Re: [CMake] CMake 2.8.1 RC 4 is ready to try

2010-03-06 Thread Micha Renner
Am Samstag, den 06.03.2010, 17:02 +0100 schrieb Eric Noulard: 2010/3/6 Eric Noulard eric.noul...@gmail.com: Not really a show-stopper since I have no problem using this RC but I do have a problem Building it on 2 linux boxes (first is Ubuntu 9.10 and the other is Fedora 11) using gcc

Re: [CMake] CMake 2.8.1 RC 4 is ready to try

2010-03-06 Thread Micha Renner
, and it has always worked. In fact, that procedure worked just fine for cmake-2.8.1-rc3 on my Debian Lenny platform. So I suspect Micha Renner didn't have a clean bootstrap=source tree or some issue like that. No, it was clean. I downloaded the compressed file, unpacked, read readme.txt

[CMake] link static lib to dll

2010-02-09 Thread Micha Renner
A DLL-library is linked to static library. The structure of the project is this: main-project +- Project STATIC | +- Project DLL This works very well. But if I include the following export part to the project of the DLL... INSTALL(TARGETS T-DLL EXPORT

Re: [CMake] Solution groups and sub projects.

2010-02-09 Thread Micha Renner
Am Dienstag, den 09.02.2010, 14:34 +0530 schrieb Surya Kiran Gullapalli: Hello all, This has been asked for quite a few times with no answer and I'm putting the same question again. Do we have the support for solution groups and sub projects with VS generators. I'm using CMake-2.8.0 (I

Re: [CMake] link static lib to dll

2010-02-09 Thread Micha Renner
Am Dienstag, den 09.02.2010, 11:34 +0100 schrieb Michael Wild: On 9. Feb, 2010, at 11:05 , Micha Renner wrote: A DLL-library is linked to static library. The structure of the project is this: main-project +- Project STATIC | +- Project DLL

[CMake] export files and FIND_PACKAGE

2010-02-05 Thread Micha Renner
I install a library (TLib) and their export files with these commands: INSTALL(TARGETS TLib EXPORT TLibX RUNTIME DESTINATION dll LIBRARY DESTINATION lib ARCHIVE DESTINATION lib) INSTALL(EXPORT TLibX NAMESPACE mp_

Re: [CMake] export files and FIND_PACKAGE

2010-02-05 Thread Micha Renner
Am Freitag, den 05.02.2010, 09:51 +0100 schrieb Michael Wild: Hmmm, that appears to be a bug. Anyways, I usually call the EXPORT something like TLibExports or TLibTargets. You are right, this is the best solution Micha ___ Powered by

Re: [CMake] Changing the build-mode

2010-01-29 Thread Micha Renner
Am Donnerstag, den 28.01.2010, 11:40 +0100 schrieb Michael Wild: But you'll certainly want to have a look at the CONFIG_POSTFIX target property or the CONFIG_POSTFIX variable for setting a postfix (such as d) depending on the configuration. Michael Yes! This tip was very helpful and

[CMake] Generated files and subdirectories

2009-11-06 Thread Micha Renner
In the FQ Setction there is a excellent example how to handle generated files in a subdirectory. The structure is: mainDirectory (CMakeLists.txt) + ADD_SUBDIRECTORY(src1) (generates the file) | + Process the file This works also for this structure

[CMake] PKG_SEARCH_MODULE

2009-10-26 Thread Micha Renner
Recently, someone ask for PKG_SEARCH_MODULE At first, I thought simple flag is flag: PROJECT(MiG) INCLUDE (FindPkgConfig) # For GTK PKG_SEARCH_MODULE(GTK REQUIRED gtk+-2.0) SET(_targetname ULS) SET(_src CTest.c) ADD_EXECUTABLE(${_targetname} ${_src}) SET_TARGET_PROPERTIES(${_targetname}

Re: [CMake] CMake with Qt (plus pkg-config)

2009-10-22 Thread Micha Renner
Okay, we are at the very beginning. # require at least cmake 2.6 project(qlom) # Should be the first command cmake_minimum_required(VERSION 2.6 FATAL_ERROR ) # Maybe this adds support for moc # if it is part of Qt # This should deliver QT_INCLUDE_DIR and QT_LIBRARIES see the doco (I

  1   2   >