Re: [CMake] Need suggestions for implementation of new feature in cmake.

2020-03-27 Thread Hendrik Sattler
Hi Carlo, The answer is already right in front of you: "a && b" executes b only if a returns positive (zero exit code). This is already done for the mkdir. And to answer the other question: no, you cannot assume a POSIX shell in a Makefile. HS Am 27. März 2020 05:53:39 MEZ schrieb Carlo

Re: [CMake] crosscompilation and source generation via add_custom_command

2020-02-03 Thread Hendrik Sattler
Am 3. Februar 2020 20:48:50 MEZ schrieb "Jędrzej Dudkiewicz" : >Hello, > >I cross-compile a project from x86_64-linux-gnu to >arm-linux-gnueabihf. Currently this is done using hand-written >Makefiles, but I"m moving it to cmake. This project uses custom >version of `lemon` parser generator.

Re: [CMake] cmake end user vs. developer rpath handling

2019-10-09 Thread Hendrik Sattler
Am 9. Oktober 2019 08:09:19 MESZ schrieb "Zakrzewski, Jakub" >That "something" seems to be line 257: >set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}") IMHO setting this to something based on CMAKE_INSTALL_PREFIX is rarely a good idea if it can be relative to the runtime

Re: [CMake] Embedded build using ExternalProject

2019-06-26 Thread Hendrik Sattler
Am 26. Juni 2019 15:53:16 MESZ schrieb Torsten Robitzki : >Hello, > >I have a project, where binaries are build for an embedded platform and >for a PC platform. To build software update packages for the embedded >platforms (files that can be used to make in the field firmware >updates), tools

Re: [CMake] question ? [cmake could not find a include_dir]

2019-05-22 Thread Hendrik Sattler
How about using the same build directory? Am 22. Mai 2019 18:02:28 MESZ schrieb "Agata Krasoń" : >Hello, > >I am trying to build from source an application. >I add in cmake-gui : XIOT_INCLUDE_DIR - path do include dir >When I compile on linux ... >It gives me an error: > >[image:

Re: [CMake] CMake GUI "Stop" button does not halt exec_process

2019-01-11 Thread Hendrik Sattler
Hi, killing everything might be problematic in some cases: MSVC uses some shared processes to write PDB files. Killing that will make an unrelated other build fail. That was real fun to find out when Jenkins was cleaning up. So kill your children but don't be too pedantic. HS Am 11. Januar

Re: [CMake] [ANNOUNCE] CMake 3.13.0-rc1 is ready for testing

2018-10-17 Thread Hendrik Sattler
Zitat von Robert Maynard : * The "BundleUtilities" module may no longer be included at configure time. This was always a bug anyway. See policy "CMP0080". This now warns about the use of DeployQt4.cmake that ships with CMake. So this module should be fixed? At least it should set this policy

Re: [CMake] LOCATION target property, generator expressions

2018-10-04 Thread Hendrik Sattler
Hi, You can use the following cmake snippet right below the project() command to add proper RPATH values: include ( GNUInstallDirs ) if ( CMAKE_SYSTEM_NAME STREQUAL "Linux" ) list ( APPEND CMAKE_INSTALL_RPATH "\$ORIGIN/../${CMAKE_INSTALL_LIBDIR}" ) endif ( CMAKE_SYSTEM_NAME

Re: [CMake] CMake accessibility, or the lack of it with latest updtes

2018-09-23 Thread Hendrik Sattler
Maybe it's related to this blog entry: http://blog.qt.io/blog/2018/02/20/qt-5-11-brings-new-accessibility-backend-windows/ Am 23. September 2018 17:37:21 MESZ schrieb Robert Maynard : >Hi Jaffar, > >CMake is still using Qt for the GUI, but we have moved from Qt4 to Qt5. >If >you are able to

Re: [CMake] CMake 3.12 and changes in Visual Studio

2018-08-31 Thread Hendrik Sattler
Zitat von Hendrik Sattler : Hi, in CMake <= 3.11, the CMakeLists.txt file that contains the target-creating call, e.g. add_library(), was automatically added to the target as visible file in the Solution Explorer. With CMake 3.12, this is suddenly not the case anymore. Anybody kn

[CMake] CMake 3.12 and changes in Visual Studio

2018-08-31 Thread Hendrik Sattler
Hi, in CMake <= 3.11, the CMakeLists.txt file that contains the target-creating call, e.g. add_library(), was automatically added to the target as visible file in the Solution Explorer. With CMake 3.12, this is suddenly not the case anymore. Anybody knows what happened? On purpose or on

Re: [CMake] Why does CMake 3.9.0 open VS2017 when targeting 2013 after installing 2017... sigh.

2018-08-15 Thread Hendrik Sattler
Am 15. August 2018 17:45:46 MESZ schrieb Brian Davis : >Can CMake defer to what the user ultimately wants? .. say the correct >version of VS. I mean that is what I thought I specified. Do you actually read the answers? You can configure that in the Windows explorer like it you wanted to open

Re: [CMake] Why does CMake 3.9.0 open VS2017 when targeting 2013 after installing 2017... sigh.

2018-08-14 Thread Hendrik Sattler
Am 15. August 2018 00:20:37 MESZ schrieb Brian Davis : >Why does CMake 3.9.0 open VS2017 when targeting 2013 after installing >2017... sigh. > >Without even regenerating or re configuring (even though that has no >effect >either) when "Open Project" is selected 2017 is opened and not 2013...

Re: [CMake] Printing "Found ..." message in config mode

2018-08-14 Thread Hendrik Sattler
Am 14. August 2018 22:08:36 MESZ schrieb "Sebastián Mancilla" : >Normally, find modules call FIND_PACKAGE_HANDLE_STANDARD_ARGS, which in >turn calls FIND_PACKAGE_MESSAGE, to print a nice message about the >location >and version of the dependency. You can do that with

Re: [CMake] How to build fully correctly versioned shared object files with cmake

2018-08-06 Thread Hendrik Sattler
Am 6. August 2018 22:29:21 MESZ schrieb Alexander Neundorf : >On 2018 M08 6, Mon 21:54:33 CEST Hendrik Sattler wrote: >> Am 6. August 2018 20:27:23 MESZ schrieb Philip Van Hoof >: >> >Hello everyone, >> > >> >I noticed that it sometimes happens that I

Re: [CMake] How to build fully correctly versioned shared object files with cmake

2018-08-06 Thread Hendrik Sattler
Am 6. August 2018 20:27:23 MESZ schrieb Philip Van Hoof : >Hello everyone, > >I noticed that it sometimes happens that I find a package for a shared >object file(s) (or DLLs, on platforms like Windows) that have a build >set up using cmake, that doesn't set everything that should be set. >

Re: [CMake] specifying path for license file for commercial compiler?

2018-07-08 Thread Hendrik Sattler
You could user "cmake -E env " in combination with https://cmake.org/cmake/help/v3.12/prop_gbl/RULE_LAUNCH_COMPILE.html and maybe https://cmake.org/cmake/help/v3.12/prop_gbl/RULE_LAUNCH_LINK.html if needed. Am 6. Juli 2018 22:34:04 MESZ schrieb "Clune, Thomas L. (GSFC-6101)" : >To use

Re: [CMake] Changing link flags for one target

2018-07-03 Thread Hendrik Sattler
You could try a generator expression with a custom target property. Am 4. Juli 2018 04:27:58 MESZ schrieb Andrew White : >In my cross-compile environment for an embedded platform, I need to set >the stack size for each executable. The linker flag to set the stack >size is (for example)

Re: [CMake] Changes to cmake_minimum_required() for 3.12

2018-07-01 Thread Hendrik Sattler
Thanks for the link. The backwards compatibility is something worth mentioning in the release notes, so that people can use it right away. Am 1. Juli 2018 00:12:19 MESZ schrieb Craig Scott : >(Subject changed to be specific to this discussion) > >On Sat, Jun 30, 2018 at 3:13 PM, Hendri

Re: [CMake] [ANNOUNCE] CMake 3.12.0-rc2 is ready for testing

2018-06-29 Thread Hendrik Sattler
It would actually make even more sense to rename cmake_minimum_required() to cmake_version_required() with the new syntax or something similar. Users of the old function cannot use the new syntax in older cmake versions and the old name does not actually fit the new functionality. Am 30. Juni

Re: [CMake] Dependencies with static libraries

2018-06-28 Thread Hendrik Sattler
Are you sure you hit the right build menu item? Maybe you are just building the current target. At least that would explain it. In MSVC you must either build the solution or the ALL_BUILD target for this to work. Am 28. Juni 2018 16:07:33 MESZ schrieb Stephan Menzel : >Hello CMake community,

Re: [CMake] Reason for deprecation of GenerateExportHeader ?

2018-06-08 Thread Hendrik Sattler
Am 8. Juni 2018 22:38:06 MESZ schrieb "Jean-Michaël Celerier" : >Hello, > >the documentation page >https://cmake.org/cmake/help/v3.11/module/GenerateExportHeader.html has >the >mention : > >> This function is deprecated. Set the target properties >CXX_VISIBILITY_PRESET and

Re: [CMake] Spaces in conditional output of generator expressions

2018-06-03 Thread Hendrik Sattler
Am 3. Juni 2018 16:33:12 MESZ schrieb Marc CHEVRIER : >In fact, the right way to manage « composite » options is to use « >SHELL: » >prefix (introduced in up-coming version 3.12). Can you modify the example to show its use? Why is it called shell? IMHO a build to its not required to use any

Re: [CMake] losing CMakeCache.txt after changing the compiler...

2018-06-02 Thread Hendrik Sattler
Hi, I also found that e.g. Qt Creator throws away the cache too eagerly, e.g. when changing the deployment target IP address on the kit. This led me to finding a solution for keeping command line definitions elsewhere because relying on the cache will hurt you bad sometimes. Maybe more

Re: [CMake] pkg-config file format versus CMake packages

2018-05-26 Thread Hendrik Sattler
Hi, I often found pkg-config files to be even wrong. Many library authors do not seem to know the rules for transitive linking. Often, the differences between static and dynamic linking is not or wrongly expressed in .pc files. Cross compiling with pkg-config is also not being the most fun

Re: [CMake] Copying Shared Libraries (DLLs) Next to the Executable

2018-02-22 Thread Hendrik Sattler
Am 22. Februar 2018 04:20:40 MEZ schrieb "Marek Vojtko (Firaxis)" : >I was looking into GetPrerequisites and FixupBundle, but both of those >operate on an already existing executable and try to guess what shared >libraries (DLLs) it might need. It feels silly to guess

Re: [CMake] Config.cmake.in: Conditionally serve static or shared library

2018-02-14 Thread Hendrik Sattler
Am 14. Februar 2018 21:47:24 MEZ schrieb Kim Walisch : >Thanks, I got it working! > >Unfortunately I could not make the generator expression work inside >PrimesieveConfig.cmake.in, here is the error message: > >CMake Error: > Error evaluating generator expression: >$

Re: [CMake] Dual use for single source file

2018-01-15 Thread Hendrik Sattler
Hi, I also fell into this trap before: Don't use MAIN_DEPENDENCY but DEPENDS. HS Am 15. Januar 2018 12:19:37 MEZ schrieb "christoph@ruediger.engineering" : >Hi folks, > >we’re using a clang-based tool for co-processing a bunch of our source >files. The benefit

Re: [CMake] How to find dll's on Cygwin? (fwd)

2017-10-28 Thread Hendrik Sattler
Hi, looking at the location of the gnat static library, it seems to be a compiler library like libm. You usually do not use find_package on those but directly use -lgnat and the compiler knows how to find it. Requesting static linking will also work then. HS Am 28. Oktober 2017 05:38:19

Re: [CMake] SWIG CMAKE project not linked correctly

2017-09-15 Thread Hendrik Sattler
Am 15. September 2017 15:23:42 MESZ schrieb Bruce Jones : >Hi, > >I have a relatively simple SWIG - CMAKE project that is not linked >correctly, source files can be downloaded here: >https://drive.google.com/open?id=0B4Y0idbHnikgTUlocmQtNDY2czQ > >The problem I have

Re: [CMake] INTERPROCEDURAL_OPTIMIZATION still not using CMAKE__COMPILER_AR

2017-08-01 Thread Hendrik Sattler
Am 1. August 2017 22:52:09 MESZ schrieb Brad King : >On 07/22/2017 07:33 AM, lec...@gmail.com wrote: >> So I downloaded the 3.9 release and thought my LTO nightmares we over >but >> cmake still isn't using CMAKE__COMPILER_AR when linking on >MSYS. > >The problem is that

Re: [CMake] Transitive behavior of target_link_libraries between shared/static

2017-07-18 Thread Hendrik Sattler
Am 18. Juli 2017 18:02:40 MESZ schrieb Eric Noulard : >2017-07-17 17:31 GMT+02:00 Robert Dailey : > >> Suppose I have the following: >> >> ``` >> add_library( A STATIC ${files} ) >> >> add_library( B SHARED ${more_files} ) >>

Re: [CMake] Generating include files

2017-05-20 Thread Hendrik Sattler
Am 20. Mai 2017 11:16:54 MESZ schrieb Urs Thuermann : >Craig Scott writes: >> add_executable(foo foo.c) >> set_source_files_properties(foo.c PROPERTIES OBJECT_DEPENDS >> ${CMAKE_BINARY_DIR}/tab.h) > >IMO that feels just wrong. foo.c does

Re: [CMake] DLL handling under CMake

2017-05-11 Thread Hendrik Sattler
et} POST_BUILD COMMAND ${CMAKE_COMMAND} -DRUN_IT:BOOL=ON -DTO_FIXUP_FILE=$<TARGET_FILE:${_target}> -DTO_FIXUP_LIBS=${_libs} -DTO_FIXUP_DIRS=${_dirs} -P ${THIS_FILE} COMMENT "Fixing up dependencies for ${_target}" VERBATIM ) endfuncti

Re: [CMake] DLL handling under CMake

2017-04-29 Thread Hendrik Sattler
Am 27. April 2017 10:43:50 MESZ schrieb Louis-Paul CORDIER : >This steps are tedious and I'm wondering if there is a mechanism that >exists or that have to be imagined to make the DLL nightmare end. I use BundleUtilities to achieve the copying of DLL files to the

Re: [CMake] check_c_source_compiles caching pitfalls

2017-04-23 Thread Hendrik Sattler
Am 23. April 2017 03:16:41 MESZ schrieb Tyson Nottingham : >The result of check_c_source_compiles and similar commands >(check_c_source_runs, check_cxx_source_compiles, etc.) is cached by the >variable name passed in. This caching makes those commands and ones >that

Re: [CMake] New Visual Studio project types

2017-04-16 Thread Hendrik Sattler
This is not cross-platform: "Today Visual Studio only supports building remotely on the Linux target machine." Am 16. April 2017 08:19:49 MESZ schrieb Robert Bielik : >Hi all, > >With the "new" Cross-platform project types in VS2015+

Re: [CMake] How to properly handle build version number in CMake script for project

2017-04-10 Thread Hendrik Sattler
Hi, You could make it a non-cache variable and manage the caching yourself. The cache is your version.cmake. Before including it, check if the variable is set and update your version cmake file, possibly with configure_file(). After that, unset() the cache variable and include your cmake

Re: [CMake] custom command comments not showing up

2017-04-07 Thread Hendrik Sattler
However, this messes up parallel make progress output. Am 7. April 2017 22:22:08 MESZ schrieb Craig Scott : >Unfortunately, COMMENT is unreliable. Some generators will honour it, >others won't. A more robust alternative is to use CMake's command mode >to >echo the comment

Re: [CMake] Desktop icon not safe (missing +x ) on cmake deb file

2017-03-19 Thread Hendrik Sattler
Hi, Desktop files and icons do not need any execute permissions. They are only data files. The executable that the desktop file points to must be executable, though. To mount the NTFS partition as a user, use either pmount or your desktop mount utility. OTOH, you make your life unusual hard

Re: [CMake] Comaptibility with older gcc

2017-01-27 Thread Hendrik Sattler
ertainly be the easiest solution to your problem. > > >On Fri, Jan 27, 2017 at 12:58 PM, Hendrik Sattler ><p...@hendrik-sattler.de> >wrote: > >> Your answer is totally unrelated to the question. >> >> Am 27. Januar 2017 18:23:39 MEZ schrieb "Eliz

Re: [CMake] Comaptibility with older gcc

2017-01-27 Thread Hendrik Sattler
It depends very much on your target system. The C++-ABI between 4.9 and 4.1 may be compatible but that is not guaranteed. C++14 is also a bit unspecific: language features or library features? Does your library expose any C++11/14 features in its interface? It may just not be possible after

Re: [CMake] Comaptibility with older gcc

2017-01-27 Thread Hendrik Sattler
Your answer is totally unrelated to the question. Am 27. Januar 2017 18:23:39 MEZ schrieb "Elizabeth A. Fischer" : >Get spack, then use it to build GCC 4.9.3 takes a couple hours of wall >time, five minutes of your time. > >Github.com/llnl/spack >On Jan 27, 2017

Re: [CMake] install() rename with version string

2017-01-20 Thread Hendrik Sattler
Am 20. Januar 2017 09:36:54 MEZ schrieb Wagner Martin : > Thanks for your answers. > > > >You will need to do the install as another target/command. For >> >example: >> > >> >add_custom_command( TARGET version >> >

Re: [CMake] install() rename with version string

2017-01-19 Thread Hendrik Sattler
Am 19. Januar 2017 15:26:47 MEZ schrieb "Gonzalo Garramuño" : > > >El 19/01/17 a las 05:30, Wagner Martin escribió: >> >> However, CMake needs to include version.cmake at first CMake run >time, >> which is not possible because it’s a generated file. >> >> Is there any other

Re: [CMake] ExternalProject_Add

2017-01-08 Thread Hendrik Sattler
One possibility is the often mentioned superbuild, another is not using find_library() but setting the variables with the library file paths manually (that's static info anyway). Am 8. Januar 2017 22:49:52 MEZ schrieb Saad Khattak : >Hello, > >I have an external project

Re: [CMake] CMake 3.7.1 gui fails to launch

2017-01-07 Thread Hendrik Sattler
Am 6. Januar 2017 23:37:00 MEZ schrieb da...@daryllee.com: >And the answer is... > >I recently installed an IDE from a not-to-be-named company that I do a > >lot of business with. The installation of that software places their >installation directory in LD_LIBRARY_PATH and guess what? their

Re: [CMake] Replacing Compile Options for a Target

2016-12-07 Thread Hendrik Sattler
Hi, actually not all compilers do that. There are really strange ones out there. HS Am 7. Dezember 2016 06:31:02 MEZ, schrieb Dvir Yitzchaki : >There's no problem as the compiler will just use the last flag value. >See an example at

Re: [CMake] v3.7.0 - archive_cryptor_private.h - compile error

2016-11-26 Thread Hendrik Sattler
I assume that maybe he tries to build with openssl 1.1 Am 26. November 2016 09:29:14 MEZ, schrieb Gregor Jasny via CMake : >Hello, > >On 25/11/2016 19:25, Nathan Sizemore wrote: >> I receive the following when building: >> >> [ 40%] Building C object >>

Re: [CMake] Proper way to support 64bit and 32bit builds

2016-10-29 Thread Hendrik Sattler
You need to set these compiler flags BEFORE the project() call to let CMake detect all stuff properly. There is a CMake variable telling you the size of a void*. Am 29. Oktober 2016 12:22:07 MESZ, schrieb cen : >Hi > >Once I switch to 32bit builds, CMake fails to recognise

Re: [CMake] Prevent ExternalProject from updating git submodules

2016-10-24 Thread Hendrik Sattler
Hi, you can tell git where your copy of tree remote url is. This is site-specific and does not change the repository: git config remote."$origirl".url "$newurl" HS Am 25. Oktober 2016 03:52:12 MESZ, schrieb Tim Rae : >Hi all, > >I'm using ExternalProject_Add to add

Re: [CMake] cmake doesn't find QtCore

2016-10-18 Thread Hendrik Sattler
Hi, what is your compiler? HS Am 18. Oktober 2016 02:07:35 MESZ, schrieb Spencer Parkin : >Hi, > >I'm trying to install PySide. With "pip install PySide", I get the >warning... > >CMake Warning at c:/Program Files

Re: [CMake] try_compile additional include FILES

2016-10-01 Thread Hendrik Sattler
Hi, If you know that you are on Windows and know all that, why do you want an expensive check for it? HS Am 30. September 2016 19:57:07 MESZ, schrieb J Decker : >I've been playing with libressl; which has quite a few >'check_function_exists' > >In particular

Re: [CMake] CMake 3.6.0-rc4 now ready for testing!

2016-07-01 Thread Hendrik Sattler
Zitat von Brad King <brad.k...@kitware.com>: On 06/29/2016 05:05 PM, Hendrik Sattler wrote: * The "InstallRequiredSystemLibraries" module learned a new "CMAKE_INSTALL_UCRT_LIBRARIES" option to enable app-local deployment of the Windows Universal CRT librari

Re: [CMake] [ANNOUNCE] CMake 3.6.0-rc4 now ready for testing!

2016-06-29 Thread Hendrik Sattler
Am 29. Juni 2016 21:30:40 MESZ, schrieb Robert Maynard : >I am proud to announce the fourth CMake 3.6 release candidate. > >Sources and binaries are available at: > https://cmake.org/download/ > >Documentation is available at: > https://cmake.org/cmake/help/v3.6 >

Re: [CMake] [Visual Studio] Is it possible to specify a different target architecture?

2016-06-28 Thread Hendrik Sattler
Hi, Yes, it is possible. Generate the solution for Visual Studio 11 2012 and open it in VS2015. VS will ask you once if to convert the project and you say no. Done. HS Am 28. Juni 2016 15:51:47 MESZ, schrieb Adam Rankin : >Hello all, > >I am wondering if there exist CMake

Re: [CMake] VS2015 and toolset v110

2016-06-21 Thread Hendrik Sattler
To generate for V110 toolset, you can just use visual studio 11 generator and open the result in VS14. HS Am 21. Juni 2016 16:28:36 MESZ, schrieb Lars : >Hello, > >Environment is Windows 7sp1, CMake 3.5.2 and Visual Studio 2015 Pro. > >Running below command in MSBuild

Re: [CMake] CMake+QT always failed for the first build, and succeeded for second build or later.

2016-06-01 Thread Hendrik Sattler
l see users of Qt 5.6 for a loong time. >On Wed, Jun 1, 2016 at 9:09 AM, Hendrik Sattler ><p...@hendrik-sattler.de> >wrote: > >> >> >> Am 1. Juni 2016 09:02:41 MESZ, schrieb Jakob van Bethlehem < >> jsvanbethle...@gmail.com>: >> >Hej,

Re: [CMake] CMake+QT always failed for the first build, and succeeded for second build or later.

2016-06-01 Thread Hendrik Sattler
Am 1. Juni 2016 09:02:41 MESZ, schrieb Jakob van Bethlehem : >Hej, > >Some things that come to mind: >* You're generating files *inside* the source tree - you're not >supposed to >do that >* Why do you want to have a special Qt_tmp directory? I don't see the >benefit,

Re: [CMake] Cross Compilation & Source file generators

2016-05-21 Thread Hendrik Sattler
Hi, Did you read the Wiki page about cross compiling with CMake? CMake can already restrict searching for libraries to certain directories when cross compiling. HS Am 21. Mai 2016 04:13:38 MESZ, schrieb Walter Gray : >A small addendum - The way I am currently solving

Re: [CMake] AUTOMOC with files on different folders

2016-05-11 Thread Hendrik Sattler
Am 12. Mai 2016 00:00:12 MESZ, schrieb Tiago Macarios : >Hi Attila, > >Thank you for your help. You are right, if I apply the following >modifications it works indeed: > >set( proj_HEADER >include/a.h >) > >add_library(proj SHARED ${proj_SOURCE} ${proj_HEADER}) >

Re: [CMake] Fwd: CPack does not generate a RPM

2016-04-17 Thread Hendrik Sattler
Am 17. April 2016 21:21:01 MESZ, schrieb Domen Vrankar : >I've finally had time to look into this. > >The problem is that rpm expects a shared library to have execute >permissions - during packaging missing execute permissions are ignored >so dependency is found but

Re: [CMake] Creating a list of link directories from a variable

2016-04-01 Thread Hendrik Sattler
them again >if I’m not using them directly? > >Miguel >From: Hendrik Sattler ><p...@hendrik-sattler.de<mailto:p...@hendrik-sattler.de>> >Date: Thursday, March 31, 2016 at 10:27 PM >To: Miguel Salazar ><salazardet...@llnl.gov<mailto:salazardet...@llnl.gov>>, &

Re: [CMake] Creating a list of link directories from a variable

2016-03-31 Thread Hendrik Sattler
Hi, If the library is a shared object, try to NOT use all those libraries. If they are used in the library but are not part of its public API, you most likely don't need to link them. If you have no missing symbols when linking, you can avoid overlinking you program. If this is a static

Re: [CMake] Two phase install?

2016-03-24 Thread Hendrik Sattler
Am 24. März 2016 10:14:40 MEZ, schrieb "Alan W. Irwin" : >On 2016-03-24 03:59- Scott Aron Bloom wrote: > >> That method does NOT work with windows... And since the visual >studio project has the external as a single command, (not sure if its >calling nmake or the

Re: [CMake] Building with Cmake using Boost problem

2016-03-19 Thread Hendrik Sattler
Am 16. März 2016 22:13:14 MEZ, schrieb Karel Geiregat : >According to the cmake documentation of FindBoost > you have to >name >the required libraries as described; > >"date_time" for "libboost_date_time" You do

Re: [CMake] Calling a Python Testing Script from CMake/CTest

2016-02-24 Thread Hendrik Sattler
It actually should be used using find_package() HS Am 24. Februar 2016 16:10:49 MEZ, schrieb George Ryan : >Thanks, Matthew. That worked. > >I had tried something similar using find(PythonInterp REQUIRED), but >that didn't work. The include() worked perfectly! >

Re: [CMake] Calling a Python Testing Script from CMake/CTest

2016-02-24 Thread Hendrik Sattler
Am 24. Februar 2016 15:09:47 MEZ, schrieb George Ryan : >Hi, > >I am having difficulty getting a python script to run a C++ subprocess >on Window 7 using VS2013. On Linux, the following code works fine, but >on Windows, from the command line I get the following

Re: [CMake] Can't get CMake to use an import library generated from a MODULE target

2016-02-18 Thread Hendrik Sattler
Am 18. Februar 2016 09:44:35 MEZ, schrieb Sam Habiel : >Rather than email one of the folks at Kitware, I decided to join the >CMake mailing list... Hello all for those who remember me. > >I apologize for the long email. > >A few of us have been trying to port GT.M

Re: [CMake] how to map configurations from include_external_msproject() ?

2016-02-09 Thread Hendrik Sattler
Hi, Am 9. Februar 2016 13:36:03 MEZ, schrieb Gerhard Pobinger : >I'm trying to include legacy Visual Studio projects into a cmake >generated >solution like this: > >project(Crypto) > >include_external_msproject(${PROJECT_NAME}_vcproj >

Re: [CMake] PROPERTY for list of link libraries

2016-01-22 Thread Hendrik Sattler
Am 22. Januar 2016 15:23:53 MEZ, schrieb Tom Kacvinsky : >I have need for a cross platform methods of getting libraries linked >into an executable. > >Say for instance, we have > >add_library(foo STATIC a.c) >add_exceutable(bar b.c) >target_link_libraries(bar foo)

Re: [CMake] add_custom_command scope

2016-01-19 Thread Hendrik Sattler
Am 19. Januar 2016 12:30:39 MEZ, schrieb Lars : > Hello, > >Using CMake 3.3 and VS2012. > >The below cmake scripts generate "Policy CMP0040 is not set: The target >in the TARGET signature of add_custom_command must exists". Why cannot >the custom/CMakeLists.txt file see

Re: [CMake] providing host binary and target library cmake-package when cross compiling

2015-10-19 Thread Hendrik Sattler
; >I'll add the source code for these modules here: >http://pastebin.com/aj01ycRQ > >I think the structure should be a little clearer with all that I've >provided. >This is the previous link to the cmake folder structure and >cmakelists.txt >files: http://pastebin.com/BnVTnegP >

Re: [CMake] providing host binary and target library cmake-package when cross compiling

2015-10-19 Thread Hendrik Sattler
Am 19. Oktober 2015 17:33:55 MESZ, schrieb Owen Alanzo Hogarth : >This is the entire project as it stands right now. I have tried >changing >from using relative to more absolute directory names in my project but >I >still get the same build errors. > >This pastebin has all

Re: [CMake] C++11 flag not being added

2015-10-16 Thread Hendrik Sattler
Am 16. Oktober 2015 11:29:48 MESZ, schrieb Petr Bena : >I think you completely misunderstood me. I know I can install it on my >machine, but I can hardly install it on PC's or servers of users who >use my program. > >I want to make it as easy as possible to let users compile

Re: [CMake] C++11 flag not being added

2015-10-16 Thread Hendrik Sattler
Am 16. Oktober 2015 11:29:48 MESZ, schrieb Petr Bena : >I think you completely misunderstood me. I know I can install it on my >machine, but I can hardly install it on PC's or servers of users who >use my program. > >I want to make it as easy as possible to let users compile

Re: [CMake] C++11 flag not being added

2015-10-16 Thread Hendrik Sattler
ilers, e.g. MS VS6 or 7.1 or 8 or 9 ;-) OTOH, if you have a very specific target audience... >On Fri, Oct 16, 2015 at 11:56 AM, Hendrik Sattler ><p...@hendrik-sattler.de> wrote: >> >> >> Am 16. Oktober 2015 11:29:48 MESZ, schrieb Petr Bena ><benap...@gmail.co

Re: [CMake] How to create a custom solution with Visual Studio 2010 generator?

2015-09-22 Thread Hendrik Sattler
Hi, Am 22. September 2015 08:49:57 MESZ, schrieb "Golebiewski, Jakub" : >I have about 620 targets (VS projects) so when I open Main Project.sln >(with 620 projects) in VS it is impossible to work with. >Currently cmake produces .sln for each Sub Project but includes

Re: [CMake] Need help with COMPILE_DEFINITIONS_

2015-09-14 Thread Hendrik Sattler
Am 14. September 2015 22:25:00 MESZ, schrieb Pau Garcia i Quiles : >Hello, > >Have you tried > >set_property(TARGET ${PrjName0} PROPERTY COMPILE_DEFINITIONS_DEBUG >-DATEST) That would be the right thing for add_definitions() but not here. He could try with generator

Re: [CMake] linking: absolute path vs -l

2015-09-02 Thread Hendrik Sattler
Hi, is the netcdf find module defining an imported target? AFAIK, imported targets are always linked by full path. Else the rules already mentioned apply. HS Am 28. August 2015 10:23:47 MESZ, schrieb "Nico Schlömer" : >Hi everyone, > >I'm curious about when CMake

Re: [CMake] How to link the output of a custom command (VS2013) when the output is an obj file, since LinkObjects is hardcoded to false?

2015-09-02 Thread Hendrik Sattler
Hi, why don't you just add the asm file to your add_library() call and enable the ASM language? HS Am 2. September 2015 09:21:11 MESZ, schrieb Nick Georghiou : >Hi, > > > >I have the custom command provided below which successfully creates >mydll.obj in the

Re: [CMake] Visual Studio - Ninja Generator

2015-08-31 Thread Hendrik Sattler
Hi, did you really enable parallel compiling in VS with /MP24 or the like? Note that using devenv to build uses the number from the IDE user settings but using msbuild needs a command line option. Else just create a custom target that calls cmake for ninja and afterwards ninja itself in yet

Re: [CMake] warn if features used that require cmake-x.y

2015-07-04 Thread Hendrik Sattler
Am 3. Juli 2015 20:23:26 MESZ, schrieb Alexander Neundorf a.neundorf-w...@gmx.net: On Thursday, July 02, 2015 04:13:40 Stuermer, Michael SP/HZA-ZSEP wrote: Have a look at cmake_minimum_required() and cmake_policy(). I think with these both it should be possible to verify you are using a

Re: [CMake] Installing systemd service files that point to my installed location

2015-06-12 Thread Hendrik Sattler
Am 12. Juni 2015 16:46:47 MESZ, schrieb Matthew Karas mkarasc...@gmail.com: This is probably and XY problem but... I'm trying to install a systemd file in my cmake. The service file needs to point at the installed destination of my build after I make install. I was trying to use

[CMake] cmake automoc fails when enabling autorcc

2015-06-08 Thread Hendrik Sattler
Hi, can someone explain to me what goes wrong? I am using Visual Studio 2010. CMake is 3.2.2 but also I tried 3.3-rc1. I created a small example that shows the problem. I created it from scratch and it instantly fails for me. You need to create a foo.png to get the qrc to actually create the

Re: [CMake] install/strip target doesn't exist?

2015-05-11 Thread Hendrik Sattler
Am 11. Mai 2015 18:46:13 MESZ, schrieb J Decker d3c...@gmail.com: command: cmake.exe --build . --config release --target install/strip -- output: mingw32-make.exe: *** No rule to make target 'install\strip'. Stop. It reverses the slash? install doesn't always strip? does package strip? Is

Re: [CMake] Chicken and egg problem with cmake_minimum_required(...), project(...), and CMAKE_SYSTEM_NAME

2015-05-01 Thread Hendrik Sattler
Am 1. Mai 2015 12:41:50 MESZ, schrieb David Cole via CMake cmake@cmake.org: I would strongly recommend NOT having different minimum versions for Linux vs. everywhere else. I did something similar one but based on the generator. It might makes sense when you generally want to support an older

Re: [CMake] Adding files to project that don't exist

2015-04-30 Thread Hendrik Sattler
Am 30. April 2015 14:04:08 MESZ, schrieb coo...@megaroms.co.uk: Hi, I'm using Doxygen to generate my project documentation and have a custom target to do it. Like this: find_package( Doxygen ) if( DOXYGEN_FOUND ) configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in

Re: [CMake] Install( Targets ) loses executable permission

2015-04-21 Thread Hendrik Sattler
Am 22. April 2015 04:01:40 MESZ, schrieb J Decker d3c...@gmail.com: the library is built 'tasks.isp' with rwxr-xr-x but it's installed with rw-r--r-- (platform is rasberry pi) Normal libraries on linux don't need any executable bit set. That the linker creates files with that permission has

Re: [CMake] Supress generation of a Makefile

2015-03-19 Thread Hendrik Sattler
Am 18. März 2015 23:59:10 MEZ, schrieb aditya siram aditya.si...@gmail.com: Hi all, I have a cross platform project where Linux/Mac users will use the standard autoheader;autoconf;./configure .. routine, but on Windows users will do cmake .; make. that's the wrong command I am using CMake

Re: [CMake] Unreliable Find*.conf

2015-03-18 Thread Hendrik Sattler
Am 18. März 2015 07:23:12 MEZ, schrieb Damian Philipp damian.phil...@gmx.net: Hello cmake-experts, I am working on a project that uses a third-party library delivered in binary form (TeamSpeak 3 SDK). My project is supposed to build on Win, Linux, and OSX, so I decided to use cmake as a build

Re: [CMake] DEB package generated with cpack does not pass lintian check on Ubuntu

2015-03-17 Thread Hendrik Sattler
Hi, you have to differ here: lintian is for checking packaging policy of distribution packages for Debian and derivatives like Ubuntu. Cpack does not necessarily create packages according to these policies but still valid packages. If dpkg eats it without errors, it's ok for

Re: [CMake] Linking to Qt static libraries fails using cmake but not qmake (both OSX and Linux)

2015-03-10 Thread Hendrik Sattler
Hi, that's because qmake uses its some extra files to track the additional libraries that are needed when you link qt statically (.prl IIRC). You are missing these, somehow. Maybe the cmake files from qt5 don't handle this case? HS Am 10. März 2015 18:28:18 MEZ, schrieb paul johnson

Re: [CMake] Inconsistency with INSTALL(TARGETS) destinations...

2015-03-10 Thread Hendrik Sattler
Am 10. März 2015 23:33:41 MEZ, schrieb J Decker d3c...@gmail.com: I recently added cmakelists to a library that didn't support cmake. It started with a simple make system, and was easy to create and use simple cmake support. I was building using visual studio, and this was my install command

Re: [CMake] Fwd: [Bug 1199360] New: Parallel build of webkitgtk4 fails with cmake 3.2

2015-03-05 Thread Hendrik Sattler
Hi, I'd assume that the problem is the perl script. It doesn't work correctly when run in parallel multiple times. This can happen when not all outputs are written before another make instance checks this rule. So the first run creates the .perf file which is already empty by another instance

Re: [CMake] Setting environment variables on windows on install

2015-01-24 Thread Hendrik Sattler
Hi, setting global environment variables in windows is just adding/editing some registry keys. As an alternative, you can run setx command in a cmd.exe instance. HS Am 24. Januar 2015 21:29:20 MEZ, schrieb Gonzalo Garramuno ggarr...@gmail.com: I would like to set an environment variable in

Re: [CMake] VS2012 builds using v3.1.0 are a lot slower than v2.8.12

2015-01-21 Thread Hendrik Sattler
Hi, This makes cmake --build much less predictable across cmake versions and cmake projects. How can I find out if msbuild is chosen without inspecting the cmake project? Specifying this manually is not really an option... too complicated. Or like that: - run CMake - get the CMAKE_VS_MSBUILD...

Re: [CMake] VS2012 builds using v3.1.0 are a lot slower than v2.8.12

2015-01-20 Thread Hendrik Sattler
Hi, but msbuild does not use this setting from VS, only devenv does. See option /m HS Am 20. Januar 2015 14:54:26 MEZ, schrieb David Cole via CMake cmake@cmake.org: If you open the Tools Options dialog in Visual Studio, and navigate to the Projects and Solutions Build and Run tab, what is

Re: [CMake] Creating an installer using cpack

2015-01-09 Thread Hendrik Sattler
Hi, on Linux, libraries don't need the executable permission set. HS Am 9. Januar 2015 21:30:54 MEZ, schrieb J Decker d3c...@gmail.com: need to use install( PROGRAMS ... ) then On Fri, Jan 9, 2015 at 7:52 AM, Gonzalo Garramuno ggarr...@gmail.com wrote: On 08/01/15 21:56, J Decker wrote:

Re: [CMake] Get native build command with CMake 3+

2014-12-05 Thread Hendrik Sattler
Hi, this original makefile rule was probably just a simplification. Make your custom target depend on all example targets which link the desired parts, then you get what the original makefile author just didn't want to do manually: having built all examples and their dependencies. And it's less

  1   2   3   4   5   6   >