[CMake] OBJECT target - usage of translation units in libraries and executables

2013-01-04 Thread Andreas Pokorny
Hi, I just stumbled across the OBJECT flag in add_library. Now I wonder whether it also works for windows builds with dlexport and dlimport flags attached to symbols. Based on the documentation it seems like object files are built immediately. Is it possible that an object library is used in a dyna

Re: [CMake] $<> expressions in include_directories command

2011-07-13 Thread Andreas Pokorny
Hi, 2011/7/13 Daniel Pfeifer : > 2011/7/13 Andreas Pokorny >> [...] >> add_library(foo ) >> target_include_paths(foo include/foo ) >> target_include_targets(foo bar) > > target_include_targets would not even be required, target_link_libraries > could hand

Re: [CMake] $<> expressions in include_directories command

2011-07-13 Thread Andreas Pokorny
ar include/bar src/mydirtystuff) target_include_targets(bar foo) # now since we do not want foo or any other target to access src/mydirtystuff: set_target_properties(bar PROPERTIES INCLUDE_INTERFACE_PATH include/bar ) The existing include_directories command could "call" target_include_pa

Re: [CMake] looking for Visual Studio installation

2009-04-19 Thread Andreas Pokorny
Hi there, 2009/4/19 Piotr Dobrogost : > [...] > Would it be a good idea to make cmake be able to find VS even if these > environment variables weren't set? Maybe using registry or just looking > at default installation folder? It is not only about finding visual studio but also about configuring

Re: [CMake] WinCE Support

2009-04-17 Thread Andreas Pokorny
Hi there, 2009/4/16 Andreas Pokorny : > [...] > Ok the patch was now modified that only a single platform > configuration is generated, and the Platform is selected through the > generator. But you still have to manually select the compiler, either > through a toolchain file or th

Re: [CMake] WinCE Support

2009-04-16 Thread Andreas Pokorny
s been uploaded to: http://cmake.org/Bug/view.php?id=7919 kind regards Andreas Pokorny ___ 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

Re: [CMake] WinCE Support

2009-04-16 Thread Andreas Pokorny
pts? kind regards Andreas Pokorny ___ 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/Wiki/CMake_FAQ

Re: [CMake] WinCE Support

2009-04-16 Thread Andreas Pokorny
found in the WCE.VCPlatform.config.xml, or do you generate a project file that works for all? kind regards Andreas Pokorny ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messa

Re: [CMake] WinCE Support

2009-04-16 Thread Andreas Pokorny
? At first glance they do not seem to be Windows Mobile/CE specific? Is this maybe related to unresolved external symbol: __security_check_cookie error messages, that I just got while writing this email. kind regards Andreas Pokorny ___ Powered by www

Re: [CMake] WinCE Support

2009-04-15 Thread Andreas Pokorny
2009/4/15 Andreas Pokorny : > Hi Clemens, > > Finally.. Here is an updated patch that integrates both WinCE patches: > http://cmake.org/Bug/view.php?id=7919 > > > With a small bug ... $(INSTRUCTIONSET) and $(ARCHFAM) and $(_ARCHFAM_) > is not appended to the C flags,

Re: [CMake] WinCE Support

2009-04-15 Thread Andreas Pokorny
Hi Clemens, Finally.. Here is an updated patch that integrates both WinCE patches: http://cmake.org/Bug/view.php?id=7919 With a small bug ... $(INSTRUCTIONSET) and $(ARCHFAM) and $(_ARCHFAM_) is not appended to the C flags, but only C++ flags. kind regards Andreas Pokorny

Re: [CMake] WinCE Support

2009-04-15 Thread Andreas Pokorny
VS9 SDK Generator factory method with the respective platform string attached. kind regards Andreas Pokorny ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messag

Re: [CMake] WinCE Support

2009-04-15 Thread Andreas Pokorny
Hi, 2009/4/15 Clemens Arth : > [...] > In my case for example, I build it for Win32 and Windows Mobile 5 in > separate directories which works great. If you install an SH4 SDK and an ARM > SDK, preconfigure the cache files and configure/build in separate > directories with different settings it sh

Re: [CMake] WinCE Support

2009-04-15 Thread Andreas Pokorny
Hello, 2009/4/15 Clemens Arth : > Hi again, > > I've installed the 2008 Express version, and it's not possible to install > any Mobile SDK afterwards. Microsoft supports Smat Devices in every version > except for the Express one. Even if you hack the msi file to install (not > checking if the righ

[CMake] Convert libtool convenience libraries to cmake

2009-04-15 Thread Andreas Pokorny
library component_2 has undefined symbols defined in component_1, you have to swap these two libaries in the TARGET_LINK_LIBRARIES command. kind regards Andreas Pokorny ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://w

Re: [CMake] Why does cmake adds /STACK:10000000 for msvc linker?

2009-04-15 Thread Andreas Pokorny
CMAKE_{EXE,SHARED}_LINKER_FLAGS. 64kb should be enough for most people :). kind regards Andreas Pokorny ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-t

Re: [CMake] WinCE Support

2009-04-14 Thread Andreas Pokorny
2009/4/14 Andreas Pokorny : > [...] > > Configuring our project fails during the CMakeTestCCompiler.cmake > tests, because it tries to execute the generated project files with > VCExpress wich has no SDK configured - and I doubt that it supports > multiple SDKs at all. I am

Re: [CMake] Convert libtool convenience libraries to cmake

2009-04-14 Thread Andreas Pokorny
ding a static library twice - with and without tracing. And here we modify the COMPILE_FLAGS of the whole target using SET_TARGET_PROPERTIES. kind regards Andreas Pokorny ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.

Re: [CMake] WinCE Support

2009-04-14 Thread Andreas Pokorny
/view.php?id=7919 Configuring our project fails during the CMakeTestCCompiler.cmake tests, because it tries to execute the generated project files with VCExpress wich has no SDK configured - and I doubt that it supports multiple SDKs at all. I am investigating that right now. kind regards Andreas

Re: [CMake] WinCE Support

2009-03-23 Thread Andreas Pokorny
igger the build? ( To execute the test you would need the non-free version of vs2005 or newer and at least one CE SDK installed - and maybe have some env vars set) kind regards Andreas Pokorny ___ Powered by www.kitware.com Visit other Kitware open-source

[CMake] WinCE Support

2009-03-23 Thread Andreas Pokorny
Hi, Any news from the WinCE Support front? There are four patch tickets in mantis: http://cmake.org/Bug/view.php?id=7919 http://cmake.org/Bug/view.php?id=8486 http://cmake.org/Bug/view.php?id=8102 http://cmake.org/Bug/view.php?id=7434 kind regards Andreas Pokorny

Re: [CMake] How to link jar files to a library through cmake

2009-03-20 Thread Andreas Pokorny
Hello, 2009/3/20 ankit jain : > Hi all, > > I am creating a library through add_library command of java files. > Now i want to link it with some jar files which contain some classes which > is needed to build that library. > > target_link_libraries is not working in this case. What do you mean by

[CMake] Creating JAR files with cmake

2009-03-05 Thread Andreas Pokorny
+--- progress.make Is there a way to get rid of the path element src/ and the duplicate path elements com/foo/bar? If not .. could you give me a starting point in the cmake source where the Java stuff is handled? regards Andreas Pokorny ___ Powered by

Re: [CMake] Toggling a Preprocessor macro for targets within a single project

2009-02-20 Thread Andreas Pokorny
ot understand why.. but DEFINE_SYMBOL did not work, but COMPILE_FLAGS -DUSE_TRACER did. So SET_TARGET_PROPERTIES is the sledgehammer for getting it done :) kind regards Andreas Pokorny ___ Powered by www.kitware.com Visit other Kitware open-s

[CMake] Toggling a Preprocessor macro for targets within a single project

2009-02-20 Thread Andreas Pokorny
Hi, We have a platfrom abstraction layer which uses a trace system. But one of the trace backends also uses the platform abstraction for network communication. So we want to build the required platform libs twice with and without tracing. Now I thought I can do the following with cmake: PROJECT(Pa

Re: [CMake] missing OLDNAMES.lib when building for WinCE

2008-11-24 Thread Andreas Pokorny
nd regards Andreas Pokorny ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

[CMake] missing OLDNAMES.lib when building for WinCE

2008-11-19 Thread Andreas Pokorny
ly generate this project. Call Stack (most recent call first): CMakeLists.txt:1 (PROJECT) -- Configuring done E:\work\build> == Any ideas what I am missing here? What is OLDNAMES.lib? I used the platform files posted at: http:/

[CMake] CMake -fPIC

2008-11-14 Thread Andreas Pokorny
Hello, 2008/11/14 ami guru <[EMAIL PROTECTED]>: > [...] > /usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../../lib/libftgl.a(FTFont.o): > relocation R_X86_64_32S against `vtable for FTFont' can not be used when > making a shared object; recompile with -fPIC > /usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../.

[CMake] Understanding try_compile

2008-11-10 Thread Andreas Pokorny
for the temporary project? regards Andreas Pokorny ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Updated WinCE CMakefiles

2008-11-03 Thread Andreas Pokorny
Hello, I am sorry that it took me so long. I made an entry in mantis: http://public.kitware.com/Bug/view.php?id=7919 2008/10/17 Alexander Neundorf <[EMAIL PROTECTED]>: > Can you please post it again > 1) as a patch > 2) for the beginning without the modifications to the generators > > So we can ge

Re: [CMake] Updated WinCE CMakefiles

2008-10-14 Thread Andreas Pokorny
relies on the existance of dumpbin.exe (which is searched quite extensively) does not break existing setups. regards Andreas Pokorny ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Updated WinCE CMakefiles

2008-09-30 Thread Andreas Pokorny
Hello Clemens, 2008/9/30 Clemens Arth <[EMAIL PROTECTED]>: > [...] I further modified your WinCE.cmake(-cl) configuration to > WM5.cmake(-cl) to contain additional flags needed. Also a cached variable > PLATFORM_SDKS is used that selects only those platforms from the set of all > platforms install

Re: [CMake] Updated WinCE CMakefiles

2008-09-30 Thread Andreas Pokorny
Hi, Is the code attached to this thread the most recent source code for WinCE and Windows Mobile support? kind regards Andreas ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Updated WinCE CMakefiles

2008-09-30 Thread Andreas Pokorny
Hello Clemens, I still try to get some time slot to try your patches here. Since we do not have that many 2005 licenses, I cannot do that as a kind of submarine project :). 2008/9/30 Clemens Arth <[EMAIL PROTECTED]>: > Andreas, > > I had a look at your modified files and, like the old ones, they

Re: [CMake] Updated WinCE CMakefiles

2008-09-21 Thread Andreas Pokorny
Hello, 2008/9/19 Clemens Arth <[EMAIL PROTECTED]>: > [...] > > > I completely agree with you about the issue of adding and removing > individual files within a single solution, and I think the entire hack is > not a good solution. I would also prefer using an individual cross compile > configurati

Re: [CMake] Updated WinCE CMakefiles

2008-09-19 Thread Andreas Pokorny
Hi, I am still wondering how this all fits together. The patch you are working on, will generate a visual studio file that contains build rules for all installed SDKs. But when generating for nmake we will have a cross compile configuration for a single SDK. How can we ensure that both things work

Re: [CMake] cmake 2.5 with windows mobile

2008-09-17 Thread Andreas Pokorny
HEADERINFO}) SET(CMAKE_CL_MACHINE_TYPE ${CMAKE_MATCH_1}) MESSAGE(STATUS "${CMAKE_CL_MACHINE_TYPE}") Is there a better way? Andreas 2008/9/17 Andreas Pokorny <[EMAIL PROTECTED]>: > Hi, > I am about to do that right now. I just discovered that there is a > tool called dumpbim

Re: [CMake] cmake 2.5 with windows mobile

2008-09-17 Thread Andreas Pokorny
too. What happened to the two windows SDK patches, that made the visual studio generator create files with selectable SDKs? Are there in the queue of patches to apply to cmake, or still not ready yet? kind regards Andreas Pokorny 2008/8/5 Alexander Neundorf <[EMAIL PROTECTED]>: > On Frid

[CMake] getting consistent symbol exporting across platforms

2008-08-09 Thread Andreas Pokorny
nd regards Andreas Pokorny 2008/8/9 Christopher Harvey <[EMAIL PROTECTED]>: > Hi, > I read that gcc exports all symbols by default where as with msvc one has to > put something like dllExport in the symbols to be exported. I'd like to have > the same symbols be exported on bo

Re: [CMake] Creating libraries (DLL) in windows

2008-08-02 Thread Andreas Pokorny
MyLib_SOURCE_DIR}/mylib.map -Wl,--strip-all") Then stripping the library should remove all unnecessary symbols. Note that you have to invest some time maintaining the symbols, and that you probably have to mangle the C++ symbols properly. (You could do that with "for x in ${PUBLIC_CLASS

Re: [CMake] cmake 2.5 with windows mobile

2008-08-01 Thread Andreas Pokorny
Hello, We are building for Win32, WinCE, QNX, Linux and hopefully soon also Symbian, with mostly cross compile setups using cmake. But note, that right now cross compiling only works for gnu make and nmake. Someone on this list also managed to extend the Visual Studio generator to support installe

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

2008-07-25 Thread Andreas Pokorny
Hello, >From my point of view as a user, it would be sufficient if the cmake (G)UIs would support it as a kind of combobox. Additionally to that cmake or a macro could do the validation during the generation step. I only had that need for a little GUI thing. Our software can be configured in many

Re: [CMake] generic Symbian gcce-toolchain file

2008-07-23 Thread Andreas Pokorny
get? Why is this check done inside cmake itself? kind regards Andreas Pokorny ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

[CMake] Feature wish - constrained string values for configuration options

2008-07-18 Thread Andreas Pokorny
Hi there, I would like to point at my feature wish: http://www.vtk.org/Bug/view.php?id=7313 Opinions? kind regards, Andreas Pokorny ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] passing by reference to a MACRO

2008-07-16 Thread Andreas Pokorny
} ) nearly: MACRO( TEST_SET variable value ) SET(${variable} ${value} ) ENDMACRO(TEST_SET) regards Andreas Pokorny ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] trouble with cmake 2.6-patch 0 cross compiling.

2008-07-16 Thread Andreas Pokorny
SET( CMAKE_SYSTEM_CXX_COMPILER /absolute/path/to/compiler ) > SET( CMAKE_FIND_ROOT_PATH /absolute/path/to/compiler/tools ) > That should be SET( CMAKE_C_COMPILER /absolute/path/to/compiler ) SET( CMAKE_CXX_COMPILER /absolute/path/to/compiler ) kind regards Andreas Pokorny _

Re: [CMake] Visual Studio and Windows Mobile SDKs

2008-07-10 Thread Andreas Pokorny
we will invest more time to get everything setup in a clean way. kind regards Andreas Pokorny 2008/7/6 Alexander Neundorf <[EMAIL PROTECTED]>: > On Monday 30 June 2008, Andreas Pokorny wrote: >> Hi, >> >> Why is there a Windows-cl.cmake and no Window-msvc.cmake? >

Re: [CMake] Visual Studio and Windows Mobile SDKs

2008-07-04 Thread Andreas Pokorny
Is any setting from the toolchain file then applied to the project configuration? What is the SDK name in this case? Would it be possible to read the SDK name from the toolchain file, or maybe a list of SDK names? > > [...] > kind regards Andreas Pokorny ___

Re: [CMake] Visual Studio and Windows Mobile SDKs

2008-07-01 Thread Andreas Pokorny
Hello, I have only tried with NMake yet. kind regards Andreas Pokorny ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Visual Studio and Windows Mobile SDKs

2008-07-01 Thread Andreas Pokorny
Hi Clemens, 2008/7/1 Clemens Arth <[EMAIL PROTECTED]>: > Hi again, > >> I took a look at your files and I think you have done a pretty good job >> and that should work out well. For some reason I had to force the compiler >> setting to be MSVC, because cmake did not set it automatically. > > I als

Re: [CMake] Visual Studio and Windows Mobile SDKs

2008-06-30 Thread Andreas Pokorny
there already a cmake function to do that? kind regards Andreas Pokorny ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Visual Studio and Windows Mobile SDKs

2008-06-30 Thread Andreas Pokorny
changes. kind regards Andreas Pokorny 2008/6/29 Alexander Neundorf <[EMAIL PROTECTED]>: > On Saturday 28 June 2008, Andreas Pokorny wrote: >> Hi there, >> We have just started getting WinCE platform files to work. I have worked >> around the /system:console issues ment

Re: [CMake] Visual Studio and Windows Mobile SDKs

2008-06-28 Thread Andreas Pokorny
for that you will have to wait until Monday. What is the difference between all these different windows CE systems? I.e. is windows mobile 5 the same as windows ce 5? kind regards Andreas Pokorny ___ CMake mailing list CMake@cmake.org http://www.cmake.org

[CMake] Semantics of CMAKE_SYSTEM_PROCESSOR

2008-06-25 Thread Andreas Pokorny
definitions, or platform aware cmake scripts, there should be a list of common values for the CMAKE_SYSTEM_PROCESSOR and other similar variables. kind regards Andreas Pokorny ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] CMake-2.6 CMAKE_TOOLCHAIN_FILE

2008-05-14 Thread Andreas Pokorny
to-qnx6 TOOLCHAIN: Seems like get_filename_component takes the first dot to determine the extension! kind regards Andreas Pokorny ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] CMake-2.6 CMAKE_TOOLCHAIN_FILE

2008-05-13 Thread Andreas Pokorny
(which does not exist in that directory, only several ar binaries with the paltform prefix exist). As a workaround I could change the variable CMAKE_CXX_CREATE_STATIC_LIBRARY and hardcode the filepath to ar there. kind regards Andreas Pokorny 2008/5/9 Alexander Neundorf <[EMAIL PROTECTED]>: > &

[CMake] CMake-2.6 CMAKE_TOOLCHAIN_FILE

2008-05-09 Thread Andreas Pokorny
TH} ${QNX_TARGET_WIN_PATH}) set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) EOF Now when running with the "Unix Makefile" generator the CMAKE_AR seems to be empty or undefined. The

Re: [CMake] POST_BUILD in a different directory

2008-04-28 Thread Andreas Pokorny
Hello, I have the same requirement. I would like to attach copy commands to targets built in different directories. I want to copy dlls/pdb/so -files into other directories that contain test cases which are supposed to use the libraries. I have a "clean" solution that only works in NMake and gnuma

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

2008-04-23 Thread Andreas Pokorny
CREATE_SHARED_LIBRARY}") I hope that helps. regards Andreas Pokorny 2008/4/23, Ivan Chupahin <[EMAIL PROTECTED]>: > 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? >

Re: [CMake] Disabling exception handling and RTTI in vs8

2008-04-17 Thread Andreas Pokorny
Hello, I beg your pardon, I just saw that the problem with the exception setting is a known issue currently worked on. Will look into mantis next time I bump into an issue. kind regards Andreas Pokorny 2008/4/17, Andreas Pokorny <[EMAIL PROTECTED]>: > Hello, > I have problems re

[CMake] Disabling exception handling and RTTI in vs8

2008-04-17 Thread Andreas Pokorny
d "no exceptions". After disabling RTTI in the IDE RuntimeTypeInfo="false" showed up. I believe RuntimeTypeInfo="true" is the default. How is all this supposed to work with cmake? I am using cmake-2.4-8. kind regards Andreas Pokorny _

Re: [CMake] cmake 2.6 cross compilation for WINCE

2008-04-17 Thread Andreas Pokorny
ld be cool to have a dedicated field to enter the toolchain file. Since it has to be set prior to running cmake. kind regards Andreas Pokorny platform_wince_evc_armv4i.cmake Description: Binary data ___ CMake mailing list CMake@cmake.org http://www.cmake.

[CMake] Copying executeables and libraries

2008-04-01 Thread Andreas Pokorny
like library names There should be a cleaner way to do that. Any ideas? kind regards Andreas Pokorny ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake