Re: [CMake] Editing IMPORTED targets

2016-10-16 Thread Ivan Shapovalov
On 2016-10-03 at 14:43 +0200, Stephen Kelly wrote: > Ivan Shapovalov wrote: > > > Hello! > > > > Using find modules to detect dependencies has a nice feature: it is > > then possible to edit the resulting cache entries to link to > > different > > l

[CMake] Editing IMPORTED targets

2016-09-25 Thread Ivan Shapovalov
IMPORTED targets, however, prevents doing this, because IMPORTED targets are not stored in CMake cache. This can be a significant disadvantage at times. So: is there any workaround/hidden feature to edit IMPORTED targets? Or is such a feature planned? Thanks, -- Ivan Shapovalov / intelfx

Re: [CMake] User-overriding IMPORTED targets (overlaying libraries, ...)

2016-09-07 Thread Ivan Shapovalov
On 2016-09-01 at 18:57 +0200, Stephen Kelly wrote: > Ivan Shapovalov wrote: > > > > > Of course, I can always edit the FooConfig.cmake file manually, but > > I'd > > better avoid patching anything (installing new files or running any > > cmake commands

[CMake] User-overriding IMPORTED targets (overlaying libraries, ...)

2016-08-31 Thread Ivan Shapovalov
inition of `foo` imported target to alter its LOCATION, because the target definition itself is not cached. Of course, I can always edit the FooConfig.cmake file manually, but I'd better avoid patching anything (installing new files or running any cmake commands is OK). Is there any nice way to s

Re: [CMake] Private dependencies of static libraries exported as targets

2016-08-19 Thread Ivan Shapovalov
That's very nice; thanks! --  Ivan Shapovalov / intelfx / On 2016-08-18 at 15:29 +0200, Tamás Kenéz wrote: > Ivan, > > > > > But, if library `foo` is built as static, then its clients suddenly > > become required to link to `bar` as well, and this information is

Re: [CMake] Private dependencies of static libraries exported as targets

2016-08-17 Thread Ivan Shapovalov
eed, your sample project does not exhibit include path bloat. So this really looks like a limitation of CMake import/export mechanism (I say limitation, not bug, because there are simply no target properties detailed enough to allow this behavior). There is a property IMPORTED_LINK_DEPENDENT_LIBRARIES_ w

Re: [CMake] Private dependencies of static libraries exported as targets

2016-08-17 Thread Ivan Shapovalov
m /home/intelfx/devel/__auxiliary/experiments/cmake-static-transitive/prefix/bar/include -o CMakeFiles/client.dir/src/ main.cpp.o -c /home/intelfx/devel/__auxiliary/experiments/cmake-static-transitive/client/src/main.cpp -- Ivan Shapovalov / intelfx / signature.asc Description: This is a digi

Re: [CMake] Private dependencies of static libraries exported as targets

2016-08-16 Thread Ivan Shapovalov
TBH, I do not see the "PRIVATE dependencies are made PUBLIC for the purposes of linking when the dependent is static library" there. --  Ivan Shapovalov / intelfx / On 2016-08-16 at 02:35 -0500, Nicholas Braden wrote: > Yes, the behavior is documented in several places, the m

Re: [CMake] Private dependencies of static libraries exported as targets

2016-08-15 Thread Ivan Shapovalov
ould've tested on sample project. It does not solve include path bloat though, but that's a minor issue. One question remains... is this behavior documented somewhere? Anyway, huge thanks, -- Ivan Shapovalov / intelfx / signature.asc Description: This is a digitally signed message pa

[CMake] Private dependencies of static libraries exported as targets

2016-08-15 Thread Ivan Shapovalov
e anything less hackish or more idiomatic? Thanks, -- Ivan Shapovalov / intelfx / signature.asc Description: This is a digitally signed message part -- 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 ser

[CMake] Compile shared library and call it's functions

2016-03-07 Thread Ivan
hould be a solution for this, but I cannot find it. Can anyone help me? For more clarification: I’m using OS X El Capitan. —— Best regards, Ivan. -- 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 variou

Re: [CMake] Windows Path Issues

2014-08-07 Thread Ivan Hrasko
mpiler by setting either the environment > variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path > to > the compiler, or to the compiler name if it is in the PATH. > > > > Any ideas are greatly appreciated. > > > > Thanks, > >

Re: [CMake] I have discovered a bug (probably)

2014-08-05 Thread Ivan Hrasko
Not absolutely, CMake still does not know Fortran compiler version, variable is defined but as an empty string... But OK, I wil chage conditions in my other scripts. :) 2014-08-05 22:16 GMT+02:00 Bill Hoffman : > On 8/5/2014 3:57 PM, Ivan Hrasko wrote: > >> >> 3. You

[CMake] I have discovered a bug (probably)

2014-08-05 Thread Ivan Hrasko
is defined (cmake 3.0.0) and Fortran version is not defined (cmake 2.8.x.x). So behaviour of CMake has changed a lot and I think it is a bug and can cause problems if someone relies on it. I have also information about this "surprise" behaviour on Linux when used with Intel compilers. --

Re: [CMake] Windows Path Issues

2014-08-05 Thread Ivan Hrasko
ake.org/cmake/help/support.html > CMake Consulting: http://cmake.org/cmake/help/consulting.html > CMake Training Courses: http://cmake.org/cmake/help/training.html > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Follow this

[CMake] Windows Path Issues

2014-08-05 Thread Ivan Hrasko
1. What your environment exactly is? It does not look like Windows only (because I see in your log: bash-3.1$ cmake -G "Unix Makefiles" . ), so I expect you are using something like Cygwin and when you use this kind of environment you can have problems with paths. For example C:/software/propgcc/bi

Re: [CMake] linkage order of static libraries and object files (ENABLE_EXPORTS)

2013-11-02 Thread Ivan Sergio Borgonovo
On Sat, 2 Nov 2013 15:09:25 +0100 Petr Kmoch wrote: > Hi Ivan. > The correct use of OBJECT libraries is not to link against them, but > to list them as sources (using a special syntax), like this: > add_executable(project main.c $) > (Assuming 'serial' is the name of

[CMake] linkage order of static libraries and object files (ENABLE_EXPORTS)

2013-11-01 Thread Ivan Sergio Borgonovo
all libraries But I can't get rid of the same error even when I add: add_executable(project main.c) set_target_properties(project PROPERTIES ENABLE_EXPORTS ON) #<-- -- Ivan Sergio Borgonovo http://www.webthatworks.it -- Powered by www.kitware.com Please keep messages on-t

Re: [CMake] does cmake get dependencies between asm files? and when said so does it link them?

2013-11-01 Thread Ivan Sergio Borgonovo
On Fri, 1 Nov 2013 20:08:05 +0100 Alexander Neundorf wrote: > and the name of the library target ? Still crt0 or something else ? BTW I'm using 2.8.11.2 in Debian sid -- Ivan Sergio Borgonovo http://www.webthatworks.it -- Powered by www.kitware.com Please keep messages on-topic a

Re: [CMake] does cmake get dependencies between asm files? and when said so does it link them?

2013-11-01 Thread Ivan Sergio Borgonovo
On Fri, 1 Nov 2013 20:08:05 +0100 Alexander Neundorf wrote: > On Friday 01 November 2013, Ivan Sergio Borgonovo wrote: > > On Fri, 1 Nov 2013 17:36:33 +0100 > > > > Alexander Neundorf wrote: > > > > If it was supposed to work right out of the

Re: [CMake] does cmake get dependencies between asm files? and when said so does it link them?

2013-11-01 Thread Ivan Sergio Borgonovo
d how. > Could you try to rename your target "crt0" to something different and > see whether this changes something ? I renamed the crt0.x file to pino.x. removed add_dependencies() and set_property(...) pino.x get assembled but it doesn't get linked. -- Ivan Sergio Borgonov

Re: [CMake] does cmake get dependencies between asm files? and when said so does it link them?

2013-11-01 Thread Ivan Sergio Borgonovo
On Fri, 1 Nov 2013 12:58:32 +0100 Alexander Neundorf wrote: > On Friday 01 November 2013, Ivan Sergio Borgonovo wrote: > > On Fri, 1 Nov 2013 11:37:10 +0100 > > > > Alexander Neundorf wrote: > > > so crt0.x is the missing one, right ? > > > Are you sure i

[CMake] does cmake get dependencies between asm files? and when said so does it link them?

2013-11-01 Thread Ivan Sergio Borgonovo
and the "how to force cmake to compile and link asm files when it seems it can't get dependencies right" the problem seems solved -- Ivan Sergio Borgonovo http://www.webthatworks.it -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http:

Re: [CMake] assembler with non standard extension with gcc compiler

2013-10-31 Thread Ivan Sergio Borgonovo
On Thu, 31 Oct 2013 22:08:27 +0100 Ivan Sergio Borgonovo wrote: [snip] > The only difference I can spot is that others contains global symbols > that are referenced in C files[1] or in the linker options[2] while > the only one that doesn't get compiled and linked contains symb

Re: [CMake] assembler with non standard extension with gcc compiler

2013-10-31 Thread Ivan Sergio Borgonovo
On Thu, 31 Oct 2013 21:17:11 +0100 Alexander Neundorf wrote: > On Thursday 31 October 2013, Ivan Sergio Borgonovo wrote: > > On Thu, 31 Oct 2013 18:01:29 +0100 > > > > Alexander Neundorf wrote: > > > Did you try setting the source file property "LANGU

Re: [CMake] assembler with non standard extension with gcc compiler

2013-10-31 Thread Ivan Sergio Borgonovo
er problem: One of those asm file is somehow being ignored by cmake. I can find the right commands greping in the build dir but they are not executed during make: ./SOFTWARE_FRAMEWORK/UTILS/STARTUP_FILES/GCC/CMakeFiles/crt0.dir/build.make: cd /home/ivan/Documents/avr/test/BuildTest/SOFTWARE_FRAM

[CMake] assembler with non standard extension with gcc compiler

2013-10-30 Thread Ivan Sergio Borgonovo
assembler-with-cpp") set(CMAKE_ASM_FLAGS "${CFLAGS} ${ASM_OPTIONS}" ) All asm files are in separate directories with their own CMakeLists.txt and they are "added" as add_library(targetname STATIC sourcefile) SET_TARGET_PROPERTIES(targetname PROPERTIES LINKER_LANGUAGE A

[CMake] Off-line builds with EXTERNALPROJECT_ADD

2012-11-07 Thread fjdsamfsfd ivan
Hi, I have CMakeLists.txt with several external projects included: <...>EXTERNALPROJECT_ADD(bzip2URL http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gzCONFIGURE_COMMAND "" BUILD_COMMAND make PREFIX=${CMAKE_BINARY_DIR} SHARED= XCFLAGS=-I${CMAKE_BINARY_DIR}/include XLDFLAGS=-L${CMAKE_BI

[CMake] New build configuration based off existing configuration?

2011-06-05 Thread Ivan Neeson
Is it possible to easily add a new build configuration that is identical to an existing configuration (for example "MinSizeRel2" which has exactly the same settings as "MinSizeRel")? ___ Powered by www.kitware.com Visit other Kitware open-source projects

[CMake] Support for languages without linking phase etc

2010-02-19 Thread Ivan Chernetsky
Hi there! I've written almost all the .cmake files required to add Erlang support, but when I was approaching completion, I realized--to be honest, got confused by the fact that there is no linking phase. So here is the question: what should CMAKE_Erlang_LINK_EXECUTABLE look like? Or speaking more

[CMake] Generating makefiles without installed CMake

2009-04-09 Thread Ivan Chupahin
Hi! How can i generate the makefiles on a different systems, where no CMake is installed? It`s like a configure (autoconf utility). ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.

[CMake] Build static plugin for Qt application

2009-04-03 Thread Ivan Chupahin
Hello! I have Qt application. It use in the source code Q_IMPORT_PLUGIN(basic). And i also have a source code for this plugin `basic`. To generate a correct makefile by CMake for the plugin `basic` what must i do? It differents from a build a simple static library?

[CMake] Output directory for genereated ui_Header.h files

2009-04-02 Thread Ivan Chupahin
Hi,folks! My project uses Qt4 and i need to generate *.h files from *.ui files. For that i use QT4_WRAP_UI macro. But it generete *.h files in a derectory where CMake is running. Maybe exist some CMake variable for point an output directory for that generated files or some other tools? ___

[CMake] Output directory for generated ui_Header.h from Header.ui

2009-04-02 Thread Ivan Chupahin
Hi,folks! My project uses Qt4 and i need to generate *.h files from *.ui files. For that i use QT4_WRAP_UI macro. But it generete *.h files in a derectory where CMake is running. Maybe exit some CMake variable for point an output directory for that generated files or some other tools?

Re: [CMake] Regression between 2.4.8 and 2.6.2 for the macada version of the gcc compiler

2009-02-11 Thread Ivan Levashew
>> -compatibility_version and -current_version without the -Wl, i.e., >>>> these options are meant to be interpreted by gcc rather than passed >>>> directly to the linker." >>>> >>>> Jerry >>>> >> On Feb 8, 2009, at 9:12

Re: [CMake] cmake 2.5 with windows mobile

2008-08-14 Thread Ivan Shynkarenka
a new generator based on the cmGlobalVisualStudio9Generator/cmLocalVisualStudio7Generator ones. If you have any question about details you are welcome. --- Best regards, Ivan. ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

[CMake] MySQL++ Configuration

2008-06-16 Thread ivan gm
Hello, I want to generate a CMakeLists.txt which configures a visual studio 2005 project with the libraries needed to use MySQL++. The changes I have to manually do with visual studio properties window are the following: 1. Append the following to 'C/C++::General::Additional Include Directories'

[CMake] Change standart VC Linker (link.exe)

2008-04-22 Thread Ivan Chupahin
Hi, everyone! I once wrote here about problem of change VS linker link.exe to other linker, may be now someone can help solve it? I try to change linker like that: STRING(REPLACE "${CMAKE_CXX_COMPILER}" "someotherlinker.exe" CMAKE_CXX_LINK_EXECUTABLE ${CMAKE_CXX_LINK_EXECUTABLE}) But it`s not work

[CMake] Change linker

2008-02-12 Thread Ivan Chupahin
Hello!!! Whether using CMake change a standart MSVS linker link.exe to some external linker? ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

[CMake] Custom build (PRE_BUILD step command)

2008-02-07 Thread Ivan Chupahin
Hello everyone! My project uses some source files, wich generated before build start. For generate this files in CMake i uses ADD_CUSTOM_COMMAND with PRE_BUILD option and SET_SOURCE_FILES_PROPERTIES with option GENERATED sets as true for cancel error during add a file to a target. But folowing er

[CMake] Using CMake with not installed MSVS6

2008-01-22 Thread Ivan Chupahin
Hello! I have not installed MSVS6 (copy from another machine). For correct CMake work i set all necessary system variables like on another machine, but CMake cause error: "CMake Error: your RC compiler: "CMAKE_RC_COMPILER-NOTFOUND" was not found." Who knows all necessary system variables can be, i

[CMake] Unix Makefiles under Windows

2008-01-10 Thread Ivan Chupahin
I need to generate Unix Makefiles under Windows for usage in Eclipse. If i run CMake follows: cmake -G "Unix Makefiles" it happens error: CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. What should I do to circumvent this probl

[CMake] Visual Studio Linker

2008-01-09 Thread Ivan Chupahin
Hello, everyone! I have occur need to change Visual Studio linker (link.exe) to some other external linker while build project by nmake. How i can do it by CMake? ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

[CMake] e-mail

2008-01-09 Thread Ivan Chupahin
[EMAIL PROTECTED] ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake