[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 which

[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 www.k

[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 Renner

[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 FIND_LIBRARY_USE_LIB

[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 Kits\8.0\Lib\win8\

[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... DESTINATION [PERMISSIONS permissions...] [CONFIGURATIONS [Debug|Release|...]] [COMPONENT ] [RENAME ] [OPTIONAL]) So what is the meaning of COMPONENT and OPTIONAL? Greetings

[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 support

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 ww

[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 --hel

[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: http:/

[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: http://www

[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) GET_TARGET_PROPERTY(TLIB1_INTERFACE_INCLUDE_DI

[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 communit

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" ) M

[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 by

[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 check

[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: http

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 pr

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 > gene

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 direct

Re: [CMake] rpath

2012-02-01 Thread Micha Renner
You can find a detailed description of RPath and CMake here: http://www.cmake.org/Wiki/CMake_RPATH_handling 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

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 http://public.kitware.com/Bu

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.

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 : > > > Am Donnerstag, den 29.09.2011, 09:22 +0200 schrieb Hendrik Sattler: > >> Zitat von Michael Wild : > >> > Just a few of my thoughts on this: > >> > &g

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 : > > 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 the foun

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 c

[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) IF(CMAKE_ASM_MASM_COMPILER

[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 > t

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 >

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.c

[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

[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] 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 fun

Re: [CMake] Parameters of functions

2011-05-12 Thread Micha Renner
Am Donnerstag, den 12.05.2011, 11:50 +0100 schrieb Glenn Coombs: > I think you probably wanted to write and call your function like this: > > FUNCTION(build var) >MESSAGE(STATUS "var: ${var}") > ENDFUNCTION(build) > > SET(var red blue yellow green) > build("${var}") > > That prints out a

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

[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: http:

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: www.cmake.org/cmake/help/cmake-

[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 http://www.kitware.com

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 thi

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 SET_TARGET_

[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 p

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 > installati

[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 val

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 abo

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 uninitializ

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 s

[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. Running

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

[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 V

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 teste

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-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) > ... > Ho

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

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 http://w

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 "> CMA

[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 h

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: http://www

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: htt

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

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"

[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: /usr/local/in

Re: [CMake] set CMAKE_INSTALL_PREFIX in CMakeLists

2010-11-24 Thread Micha Renner
> SET(CMAKE_INSTALL_PREFIX "/foo/bar" CACHE PATH "Foo install prefix") > > So, without the test to CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT, > and without the FORCE option. > > Reason: if someone unsets CMAKE_INSTALL_PREFIX on the command-line with > -U, CMAKE_INSTALL_PREFIX will default to

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

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] 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 " gcc" and " ld". > In this case you have to work with a combination of t

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 : > > 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 > > t

Re: [CMake] CMake 2.8.3 available for download

2010-11-03 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 ___

[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 message

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): 1>Syntax error in cmake code at 1> 1> C:/work-c/T/CMake/cmake_inst

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 le

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 Kit

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 http://www.cmake.org/pipermail/cmake

[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: http://www.cmake.org/W

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 ano

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 > wrote: > There still some problems with the Express version of VS > I started the gui-version of CMake and generated the solution > files >

[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 wi

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_LIBR

[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 Build-Direc

[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 t

[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_CURRE

[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 t

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)? > > > > I

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 subs

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

2010-03-06 Thread Micha Renner
> cd build > > ../CMake/bootstrap > > Just to add some more data and opinion to this thread, I always bootstrap in > a clean source tree (freshly downloaded from kitware) out of inertia. That > procedure is how I started to build CMake years ago, and it has always > worked. In fa

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 : > > 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 4.4.1: >

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 : > > 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. So, if I don

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 >

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

[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 T-

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 www.kitw

[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_ DEST

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 _POSTFIX target > property or the _POSTFIX variable for setting a postfix (such as "d") > depending on the configuration. > > Michael > Yes! This tip was very helpful and solves

  1   2   >