Re: [CMake] Setting permissions with CPack/WiX installer

2019-04-08 Thread Nils Gladitz
On Mon, Apr 8, 2019 at 2:07 AM Cook, Steven (G&I) wrote: > Hi Nils, > > > > > Been a while since I looked at this but it still seems to work for me > in 3.14.0. > > > Corresponding elements are generated in files.wxs: > > > > Can you please tell me the commands you used to run cpack? I did the >

Re: [CMake] Setting permissions with CPack/WiX installer

2019-04-05 Thread Nils Gladitz
On Fri, Apr 5, 2019 at 5:25 AM Cook, Steven (G&I) wrote: > Hi all, > > > > I would like to set the permissions on some files and directories in my > WiX installer. It looks like the CPACK_WIX_ACL property should be suitable, > but I can’t get it to work. There are examples of its usage in this pr

Re: [CMake] $ is not empty even if configuration has no PDB

2018-08-03 Thread Nils Gladitz
On Fri, Aug 3, 2018 at 11:31 AM Louis-Paul CORDIER wrote: > How can I detect using generator expression if a file exists? > Since there is no first class CMake feature controlling if PDB files are generated and since CMake does not try to interpret custom compiler flags projects or users might b

Re: [CMake] groups of ascii nul ('\0) characters inserted into make output but this just occurs for parallel builds

2018-07-09 Thread Nils Gladitz
On Sun, Jul 8, 2018 at 11:00 PM Alan W. Irwin wrote: > My parallel builds on my Linux OS (currently Debian Buster, but this > also happened for Debian Jessie so this is a long-standing problem) > have ascii null ('\0) characters inserted in the output while the > corresponding non-parallel build

Re: [CMake] CMAKE_SYSROOT

2018-07-03 Thread Nils Gladitz
On Tue, Jul 3, 2018 at 3:06 PM dbegun via CMake wrote: > I am cross-compiling some code for ARM on an x86 host with cmake 3.5.1. > The code has multiple dependencies, and I placed relevant cross-compiled > libraries in /home/dev/arm_build. I was hoping that > specifying CMAKE_SYSROOT=/home/dev/ar

Re: [CMake] target_include_directories and system headers

2018-06-27 Thread Nils Gladitz
On Thu, Jun 28, 2018 at 7:12 AM Jim Lloyd wrote: > [...] > But if I make a trivial project that simply includes yaml-cpp as a > dependency, the generated compile commands use `-isystem` to include the > yaml-cpp headers. > > Is this a bug in CMake? > > Also, is there any way I may be able to work

Re: [CMake] Is it possible for CMake to generate unescaped quotes on the (bash) command line as a result of add_custom_command?

2018-04-13 Thread Nils Gladitz
On 13.04.2018 21:48, Alan W. Irwin wrote: [...] However, that is wrong since that command currently needs two arguments even if one of them is empty.  So instead I need the generated command to be ./test-drv-info "temporary_target_" ps > /home/software/plplot/HEAD/build_dir/drivers/test_dyndr

Re: [CMake] What are the actual benefits of namespaced targets?

2018-03-11 Thread Nils Gladitz
On 10.03.2018 23:01, Alan W. Irwin wrote: Anyhow, your thoughts would be appreciated for reasonable best practice limits on how far (if any) beyond the common code case you would go to convert an old project to use ALIAS libraries and modules in the build tree that have to be implemented in any c

Re: [CMake] What are the actual benefits of namespaced targets?

2018-03-08 Thread Nils Gladitz
On 08.03.2018 19:50, Alan W. Irwin wrote: So what are the actual benefits of namespacing the exported targets associated with libraries? On the consumer side it makes linking to targets less error prone. When you link to a library target without a namespace and e.g. get the name or scope wro

Re: [CMake] Do any CMake back ends have support for parallel builds that efficiently use clusters?

2018-01-12 Thread Nils Gladitz
On Fri, Jan 12, 2018 at 10:58 AM, Alan W. Irwin wrote: > I am looking into the practicality of using clusters containing ~5 > cheap ARM 8-core computers (such as the Banana Pi M3) to rapidly build > and test software (since even with ccache I am currently spending a > lot of my time waiting for t

Re: [CMake] CTest not searching for the correct executable

2018-01-05 Thread Nils Gladitz
On 05.01.2018 17:11, Saad Khattak wrote: Hi, Suppose I have something like this: add_executable(MyTest main.cpp) set_target_properties(MyTest   PROPERTIES   DEBUG_POSTFIX _d   RELEASE_POSTFIX _r   ) add_test(RunTests MyTest) # where MyTest is the I expect CMake to recognize that "MyTest" has

Re: [CMake] ; list

2017-09-21 Thread Nils Gladitz
On Thu, Sep 21, 2017 at 3:26 PM, Patrick Welche wrote: > Having run cmake 3.9.2 once already, I see: > > $ cat CMakeLists.txt > set(var one two) > message(${var}) > $ cmake . > onetwo > -- Configuring done > -- Generating done > -- Build files have been written to: /tmp/cmaketest > > Would you ha

Re: [CMake] rebuild externalprojects

2017-09-21 Thread Nils Gladitz
On Thu, Sep 21, 2017 at 1:09 PM, J Decker wrote: > how do I make sure that externalprojects get built if I change a source in > one? > "BUILD_ALWAYS 1" should always trigger the build of the external project. This would be required since only the external project's build system will know if some

Re: [CMake] CMakeLists.txt location

2017-09-13 Thread Nils Gladitz
On 13.09.2017 14:31, Alain Miniussi wrote: On 13/09/2017 12:49, Nils Gladitz wrote: [...] Do you have a minimal reproducible example for that behaviour? e.g. given: cmake_minimum_required(VERSION 2.8.0) project(Foo NONE) file(WRITE foo/CMakeLists.txt "add_execu

Re: [CMake] CMakeLists.txt location

2017-09-13 Thread Nils Gladitz
On 13.09.2017 12:22, Alain Miniussi wrote: On 13/09/2017 11:16, Nils Gladitz wrote: On 13.09.2017 10:52, Alain Miniussi wrote: Hi, Is there a way, when printing CMake error, to get the exact location of the CMakeLists.txt ? For example, right now, when I have: CMake Error at

Re: [CMake] CMakeLists.txt location

2017-09-13 Thread Nils Gladitz
On 13.09.2017 10:52, Alain Miniussi wrote: Hi, Is there a way, when printing CMake error, to get the exact location of the CMakeLists.txt ? For example, right now, when I have: CMake Error at CMakeLists.txt:14 (add_executable): I need to scan all my CMakeLists.txt (~200) to check which one

Re: [CMake] Regex Matching

2017-08-23 Thread Nils Gladitz
On 23.08.2017 22:21, Andrew Bell wrote: Hi, Can someone please explain the cmake regex matching rules? The following returns true: if ("This is a test" MATCHES "test") I would have expected to have needed something like this to get a match: if ("This is a test" MATCHES ".*test") Does cmake

Re: [CMake] CPackWIX and MS Visual Studio Redistributable *.MSM

2017-08-17 Thread Nils Gladitz
On Thu, Aug 17, 2017 at 3:10 PM, Matwey V. Kornilov < matwey.korni...@gmail.com> wrote: > Hello, > > What is recommended way to locate and merge MS redistributable *.msm file > into final *.msi installer produced by CPack and WIX? > > It seems to be a quite common task but I cannot find any mentio

Re: [CMake] The C compiler "/usr/bin/cc" is not able to compile a simple test program.

2017-07-30 Thread Nils Gladitz
On 30.07.2017 10:54, Micha Hergarden wrote: On 30-07-17 04:36, jupiter wrote: I thought if I add -DCMAKE_CC_COMPILER=gcc that error should go, no, it still compile with the specific default cc: The corresponding CMake cache variable for the C compiler is CMAKE_C_COMPILER (note C not CC). Al

Re: [CMake] setting PYTHONPATH for test

2017-07-30 Thread Nils Gladitz
On 30.07.2017 03:22, Kris Thielemans wrote: Hi I’m trying to add to the PYTHONPATH for a test that uses Python. I do that using set_test_properties. When using the makefile generator, I need to add ${CMAKE_CURRENT_BINARY_DIR}. However, for Visual Studio I also need to add for instance ${CMAK

Re: [CMake] How to get list of generated object-files of OBJECT-library?

2017-07-17 Thread Nils Gladitz
On 17.07.2017 17:13, Deniz Bahadir wrote: Am 17.07.2017 um 16:47 schrieb Nils Gladitz: On 7/17/2017 3:52 PM, Deniz Bahadir wrote: This works just fine. However, now I want to add an additional build-step after creation of the object-files and before linking the shared library. (In

Re: [CMake] How to get list of generated object-files of OBJECT-library?

2017-07-17 Thread Nils Gladitz
On 7/17/2017 3:52 PM, Deniz Bahadir wrote: This works just fine. However, now I want to add an additional build-step after creation of the object-files and before linking the shared library. (In particular, I want to compress the debug-symbols in the object-files. But that should be irrelevan

Re: [CMake] Warning: Argument not separated from preceding token by whitespace.

2017-06-26 Thread Nils Gladitz
On Mon, Jun 26, 2017 at 10:33 AM, wrote: > Hello, > > I've got the following code in a cmake file: > > 109 add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/tmp-pcode- > matlab/knitromatlab_fsolve.p > 110 ${CMAKE_BINARY_DIR}/tmp-pcode- > matlab/knitromatlab_lsqnonlin.p > 111

Re: [CMake] Platform dSPACE

2017-06-23 Thread Nils Gladitz
On 23.06.2017 21:47, Robin Verschueren wrote: Dear CMake, We are trying to build our application for the dSPACE embedded system (www.dspace.com ), more specifically their MicroAutobox-II. This makes use of a specific compiler called mccppc (Microtec C/C++ PowerPC compile

Re: [CMake] Is there a way to produce the documentation of cmake in xml format?

2017-06-07 Thread Nils Gladitz
On 07.06.2017 21:23, Martin Weber wrote: Hi all, is there a way to extract the documentation from cmake-sources and convert that to XML? I am trying to work on CmakeEd [1]. This Eclipse plugin has support for editing cmakelists files (syntax highlighting, code completion), but only for cmake 2.8

Re: [CMake] DLL handling under CMake

2017-04-28 Thread Nils Gladitz
On 04/27/2017 10:43 AM, Louis-Paul CORDIER wrote: I added my current code for handling Qt library in my project at the end of this email. (I put a huge part of it if someone want to reuse it). You will notice that this code is handling the case where you are debugging using Visual Studio, to a

Re: [CMake] fftw library in cmake

2017-04-21 Thread Nils Gladitz
On 04/21/2017 03:40 PM, aishwarya selvaraj wrote: add_library(fftw STATIC IMPORTED) [...] TARGET_LINK_LIBRARIES(prose fftw ) [...] make[2]: *** No rule to make target `fftw-NOTFOUND', needed by `prose'. Stop. You are creating an IMPORTED target "fftw" but you aren't populating its IMPORT

Re: [CMake] CMake uses semi-colon as path separator on Linux

2017-04-13 Thread Nils Gladitz
On 14.04.2017 06:05, Pawel Veselov wrote: Hello. I really can't understand what's going on. Trying to compile my project for android, setting all kinds of things to get it done. I've tried 3.8.0, 3.7.2 and 3.6.2, with the same result. The below extracts are from running 3.6.2 Running with --deb

Re: [CMake] Directing cmake to link against shared object with debug postfix (_d)

2017-04-12 Thread Nils Gladitz
On 12.04.2017 17:48, Olumide wrote: Thanks Nils. BTW, shouldn't that be ContinuumTransfunctioner$<$:_d> Transmogrifier$<$:_d> Ah right given your specific case, yes. Nils -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wi

Re: [CMake] Directing cmake to link against shared object with debug postfix (_d)

2017-04-12 Thread Nils Gladitz
On 04/12/2017 04:49 PM, Olumide wrote: set(Libraries ContinuumTransfunctioner${CMAKE_DEBUG_POSTFIX} Transmogrifier${CMAKE_DEBUG_POSTFIX} ) Perhaps try with generator expressions: set(Libraries ContinuumTransfunctioner$<$:d> Transmogrifier$<$:d> ) Maybe alternatively create a

Re: [CMake] Linker error when building 3.8.0-rc4 on Linux

2017-03-31 Thread Nils Gladitz
On 31.03.2017 22:44, Alan W. Irwin wrote: Therefore, from the sidelines I am encouraging you guys to be extraordinarily careful about this particular issue; e.g., by attempting to to confirm this CMake-3.8.0-rc4 issue independently for Ubuntu 16.10. FWIW I tried reproducing it from within an

Re: [CMake] Linker error when building 3.8.0-rc4 on Linux

2017-03-31 Thread Nils Gladitz
On 03/31/2017 11:54 AM, Alan W. Irwin wrote: Hi Nils: And use of ExternalProject_Add, etc. In other words, this is a pretty crippling restriction for users with Linux distributions (such as the quite recent Ubuntu 2016.10 of the original poster) that do not yet give access to libssl version 1.

Re: [CMake] Linker error when building 3.8.0-rc4 on Linux

2017-03-31 Thread Nils Gladitz
On 03/31/2017 09:04 AM, ウルヰ wrote: To disable OpenSSL e.g. "cmake ... -DCMAKE_USE_OPENSSL=false" or "bootstrap ... -- -DCMAKE_USE_OPENSSL=false". What would be the ramifications of building CMake without OpenSSL? As far as I am aware it would mean no "https://"; support in curl which would

Re: [CMake] Linker error when building 3.8.0-rc4 on Linux

2017-03-30 Thread Nils Gladitz
On 03/31/2017 07:46 AM, ウルヰ wrote: ../Utilities/cmlibarchive/libarchive/libcmlibarchive.a(archive_hmac.c.o): In function `__hmac_sha1_init': archive_hmac.c:(.text+0x25): undefined reference to `HMAC_CTX_new' ../Utilities/cmlibarchive/libarchive/libcmlibarchive.a(archive_hmac.c.o): In function `_

Re: [CMake] Visual Studio 2017 could not be found if installed in non-default location

2017-03-28 Thread Nils Gladitz
On 03/28/2017 03:57 PM, HarpyWar wrote: "Microsoft.VisualStudio.Component.Windows81SDK" could not not be found anywhere. A component "Microsoft.VisualStudio.Component.Windows10SDK.14393" exists on Windows 10 x64 (just found about it here https://docs.microsoft.com/en-us/visualstudio/install/

Re: [CMake] Visual Studio 2017 could not be found if installed in non-default location

2017-03-28 Thread Nils Gladitz
On 03/28/2017 03:17 PM, HarpyWar wrote: Nils Gladitz, the command, which you proposed, return nothing, even on a machine where a compiler found: vswhere -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -requires Microsoft.VisualStudio.Component.Windows10SDK For me it lists my

Re: [CMake] Visual Studio 2017 could not be found if installed in non-default location

2017-03-27 Thread Nils Gladitz
On 03/26/2017 11:01 AM, HarpyWar wrote: Output from vswhere.exe shows that Visual Studio is installed on disk C:\ (https://github.com/Microsoft/vswhere) Perhaps also try: vswhere -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -requires Microsoft.VisualStudio.Component.Window

Re: [CMake] VS Code generator?

2017-03-24 Thread Nils Gladitz
On 03/24/2017 02:04 PM, Eric Noulard wrote: Is there any plan to create/support a VS Code (https://code.visualstudio.com/) generator? Since Visual Studio Code seems to be able to open Visual Studio Solution is it possible to have a working Visual Studio Generator on Linux? Any information/

Re: [CMake] Running test who have two labels?

2017-03-24 Thread Nils Gladitz
On 03/24/2017 11:50 AM, Eric Noulard wrote: Hi there, I'm playing with ctest LABELS and I wanted to know whether if it is possible to run the set of tests which have 2 labels ? I manage to have all tests which have **either** L1 or L2: ctest -L "L1|L2" but how can I write a proper command

Re: [CMake] can't locate library with find_library

2017-03-22 Thread Nils Gladitz
On 22.03.2017 14:52, Oliver wrote: hi all, I am running cmake 3 using EPEL install on RHEL 7. I also have installed "gflags", $rpm -ql gflags /usr/bin/gflags_completions.sh /usr/lib64/libgflags.so.2.1 /usr/lib64/libgflags_nothreads.so.2.1 /usr/share/doc/gflags-2.1.1 /usr/share/doc/gflags-2.

Re: [CMake] Windows mapped network drive and 'if EXISTS'

2017-03-03 Thread Nils Gladitz
On 03/03/2017 02:28 PM, Louis-Paul CORDIER wrote: When I try to do a if(EXISTS "Z:\"), it never jump into the if statement. Try if(EXISTS "Z:\\") or if(EXISTS "Z:/"). Either works for me. if(EXISTS "Z:\") looks like it should have been a syntax error since the backslash starts an escape seq

Re: [CMake] Potential bug: Having executables named "test" causes Ninja generator to generate ambiguous rules...

2017-02-22 Thread Nils Gladitz
On 22.02.2017 22:11, Malfettone, Kris wrote: Is there a bug tracker or somewhere that I should report this as well? I just want to make sure I put the right information in the right spot so the ninja generator maintainer might see it. I am not sure there is a dedicated maintainer for the

Re: [CMake] CMake install imported target using WIX

2017-02-21 Thread Nils Gladitz
On 02/21/2017 02:48 PM, Lars wrote: Hello, We are using the "config" mode of Find_Package that locates CompConfig.cmake which create IMPORTED targets. CMakeLists.txt Find_Package(some_comp ${some_comp_path}) CompConfig.cmake; add_executable(app IMPORTED) add_library(lib SHARED IMPORTE

Re: [CMake] Response files not working with TI compilers

2017-02-20 Thread Nils Gladitz
On 02/20/2017 11:12 AM, R, Manoj wrote: When will these changes be available in the official version of cmake. I also made similar changes. I am suing 3.8 version of the CMake and the issue is not fixed. The users mailing list might not be the ideal place to bring up issues like this. Y

Re: [CMake] Potential bug: Having executables named "test" causes Ninja generator to generate ambiguous rules...

2017-02-15 Thread Nils Gladitz
On 15.02.2017 15:16, Malfettone, Kris wrote: Just noticed a problem in my example. In my attempt to simplify my example I moved both outputs into the same folder which in my opinion is invalid because both output file names are the same. However, the same basic setup does reproduce the prob

Re: [CMake] Potential bug: Having executables named "test" causes Ninja generator to generate ambiguous rules...

2017-02-15 Thread Nils Gladitz
On 14.02.2017 22:53, Malfettone, Kris wrote: If so, are executables named “test” no longer supported? Am I missing something or wrong in some way? Issues existed before 3.0 but since 3.0 "test" and similarly problematic target names have been explicitly reserved. Any CMake Version >= 3.0 w

Re: [CMake] cmake -DX=Y -P : problem unsetting variables defined on command line

2017-02-09 Thread Nils Gladitz
On 02/09/2017 04:10 PM, Sergey Zakharchenko wrote: cmake -DX=Y -P x.cmake The above sets the *cache* variable X. This x.cmake gives "X=Y": SET(X) MESSAGE("X=${X}") The above unsets the *regular* variable X (leaving the cache variable X intact). This, too, gives "X=Y": UNSET(X) MESSAG

Re: [CMake] CMake 3.7.2 and parallel builds

2017-01-30 Thread Nils Gladitz
On 01/30/2017 02:26 PM, Dave Flogeras wrote: On Sun, Jan 29, 2017 at 9:53 AM, Nils Gladitz <mailto:nilsglad...@gmail.com>> wrote: FWIW I don't think -j does anything when you build the NightlyBuild target given that that make invocation is not the one directly perform

Re: [CMake] Adding cache entries to cmake gui

2017-01-30 Thread Nils Gladitz
On 01/30/2017 12:44 PM, Edward Diener wrote: Using the cmake gui program of the latest cmake 3.7.2 I add a cache entry of CMAKE_CXX_FLAGS to some compile flag value, but as soon as I hit the generate button the cache entry disappears and is no longer retained. Is CMAKE_CXX_FLAGS no longer a va

Re: [CMake] CMake 3.7.2 and parallel builds

2017-01-29 Thread Nils Gladitz
On 29.01.2017 13:29, Dave Flogeras wrote: I tried with "make -j5 VERBOSE=1 NightlyBuild" but didn't see anything indicative on the console, or in the cmake output files that shed any light for me. What's weirder (and I forgot to mention) is that if I just build the project normally outside

Re: [CMake] Strange test failure

2017-01-19 Thread Nils Gladitz
On 01/20/2017 12:59 AM, Aaron Boxer wrote: I have a test in my ctest suite that fails both with and without a ! at the beginning of the test. So, FOO -BAR -BAZ fails and !FOO -BAR -BAZ fails. I am not aware of "!" having any special meaning in the context of CTest. Can you elaborate?

Re: [CMake] Add dependencies to the automoc/autorcc target?

2017-01-17 Thread Nils Gladitz
On 01/17/2017 12:02 PM, Yves Frederix wrote: Hi all, I have a situation in which I would need to define a dependency for the automoc target. Is it possible to do this somehow? https://cmake.org/cmake/help/v3.7/prop_tgt/AUTOGEN_TARGET_DEPENDS.html The Documentation seems to imply this is AUTO

Re: [CMake] Problem with a simple framework target on OS X

2017-01-16 Thread Nils Gladitz
On 01/16/2017 11:02 AM, Nat! wrote: Hi I am trying to create an OS X framework with resources and headers using cmake. This is my `CMakeLists.txt` file: project( Foo) cmake_minimum_required (VERSION 3.7) add_library( Foo SHARED foo.c ) set_target_properties( Fo

Re: [CMake] Does target order matter for dependencies?

2016-12-08 Thread Nils Gladitz
On 12/08/2016 04:01 PM, Robert Dailey wrote: When I define my targets (custom, library, executable), does the order of their declaration matter when it comes to using those targets in dependencies? It's difficult to explain, so I'll show an example: add_executable(foo main1.cpp) target_link_li

Re: [CMake] Adding Cmake version in online documentation

2016-11-09 Thread Nils Gladitz
On 11/09/2016 09:06 PM, Ruslan Baratov wrote: So why the project in the middle of the migration process is not a valid case? It is maintained but the exact migration step is paused, but I have an intention to improve the code in future. Anyway even if the project is no longer maintained, then w

Re: [CMake] Adding Cmake version in online documentation

2016-11-09 Thread Nils Gladitz
On 09.11.2016 15:52, Ruslan Baratov wrote: Can you show the real code? The code that in your opinion doesn't violate the "right way of policy usage"? It is not a question about code. It is a question about context and use case. Valid context as the documentation states would e.g. be a projec

Re: [CMake] Adding Cmake version in online documentation

2016-11-09 Thread Nils Gladitz
On 09.11.2016 14:57, Ruslan Baratov wrote: Again policies are not meant to be feature toggles. You can do a lot of things and there may be valid use cases but in general policies are not meant to be used this way. This is made explicit in CMake's documentation on policies. They exist to preser

Re: [CMake] Adding Cmake version in online documentation

2016-11-09 Thread Nils Gladitz
On 09.11.2016 12:04, Ruslan Baratov wrote: On 09-Nov-16 16:22, Nils Gladitz wrote: On 09.11.2016 04:29, Ruslan Baratov wrote: On 08-Nov-16 23:33, Nils Gladitz wrote: On 11/08/2016 04:17 PM, Ruslan Baratov wrote: Except it's exactly opposite :) `cmake_minimum_required` is about new fea

Re: [CMake] Adding Cmake version in online documentation

2016-11-09 Thread Nils Gladitz
On 09.11.2016 03:47, Ruslan Baratov wrote: On 09-Nov-16 06:01, Nils Gladitz wrote: I think the git tag creation dates should roughly equate release dates: https://cmake.org/gitweb?p=cmake.git;a=tags What about the future releases? There was a page https://cmake.org/Bug/changelog_page.php

Re: [CMake] Adding Cmake version in online documentation

2016-11-09 Thread Nils Gladitz
On 09.11.2016 04:29, Ruslan Baratov wrote: On 08-Nov-16 23:33, Nils Gladitz wrote: On 11/08/2016 04:17 PM, Ruslan Baratov wrote: Except it's exactly opposite :) `cmake_minimum_required` is about new features/commands, and policies is about behavior. I don't agree and you can no

Re: [CMake] Adding Cmake version in online documentation

2016-11-08 Thread Nils Gladitz
On 08.11.2016 20:26, Albrecht Schlosser wrote: On 08.11.2016 15:22 Nils Gladitz wrote: Strictly speaking cmake_minimum_required(VERSION) is not about command availability but rather about behavior (cmake policies). [...] I'd start by requesting the highest possible version I could ju

Re: [CMake] Adding Cmake version in online documentation

2016-11-08 Thread Nils Gladitz
On 11/08/2016 04:17 PM, Ruslan Baratov wrote: On 08-Nov-16 22:22, Nils Gladitz wrote: Strictly speaking cmake_minimum_required(VERSION) is not about command availability but rather about behavior (cmake policies). Except it's exactly opposite :) `cmake_minimum_required` is about new fea

Re: [CMake] Adding Cmake version in online documentation

2016-11-08 Thread Nils Gladitz
On 11/08/2016 03:11 PM, Dvir Yitzchaki wrote: But how do you know which version to declare on cmake_minimum_required? If this feature will be added it won't be far from writing a script that scans the commands you use and outputs the first appropriate version. Strictly speaking cmake_minimum

Re: [CMake] Adding Cmake version in online documentation

2016-11-08 Thread Nils Gladitz
On 11/08/2016 10:57 AM, Louis-Paul CORDIER wrote: Hi, This is a feature proposal for the documentation. Cmake is making use of cmake_minimum_required() command, that is very useful. Unfortunately it is very hard to identify commands that will work without browsing all version of cmake docume

Re: [CMake] CPACK WIX shortcuts

2016-11-03 Thread Nils Gladitz
On 03.11.2016 19:32, Tiago Macarios wrote: And I am building it like so: mkdir build cd build cmake .. cmake --build . --config Release cpack -G WIX You are using a multi-configuration generator (Visual Studio). As you do in the build try specifying a configuration to be packaged when invok

Re: [CMake] CPACK WIX shortcuts

2016-11-03 Thread Nils Gladitz
On 11/03/2016 12:23 AM, Tiago Macarios wrote: Hi, I am trying to create an installer with CPACK and WIX as generator. Everything works fine except that I cannot get start menu shortcuts to work. I was using almost the same code as the link below (which seems to be the unit tests for this f

Re: [CMake] [cmake-developers] CPack [WiX] Customizations of individual features/components

2016-09-30 Thread Nils Gladitz
On 09/30/2016 08:43 AM, Roman Wüger wrote: Hello, I want to customize some with CPack generated *.wxs files. For example: directories.wxs is generated with only the TARGET_DIR. TARGETDIR (no underscore) is always the one and only root-directory element [1]. How can I add an additional d

Re: [CMake] visual studio tries to link to non-existent static version of lib

2016-08-23 Thread Nils Gladitz
On 23.08.2016 21:36, Jack Stalnaker wrote: The following works on Linux, for both GNU and Intel compilers: add_library(mylib SHARED ${mylib_sources}) target_link_libraries(mylib ${mylib_libraries}) ... add_executable(test_mylib test_mylib.c) target_link_libraries(test_mylib mylib ${test_mylib_li

Re: [CMake] Wrong version of cl.exe for x64

2016-08-22 Thread Nils Gladitz
On 22.08.2016 19:34, Albrecht Schlosser wrote: So, the conclusion is: since CMake can't figure it out we have to _assume_ that the header files can be #included in MSVC projects (MinGW works well), hence we should set the corresponding CMake variable to true, maybe something like: if (MSVC)

Re: [CMake] Wrong version of cl.exe for x64

2016-08-22 Thread Nils Gladitz
On 08/22/2016 01:30 PM, Albrecht Schlosser wrote: On 22.08.2016 12:54 Nils Gladitz wrote: On 08/22/2016 12:18 PM, Albrecht Schlosser wrote: On 22.08.2016 10:33 Nils Gladitz wrote: The visual studio command line environments should have no effect when using the visual studio generators

Re: [CMake] Wrong version of cl.exe for x64

2016-08-22 Thread Nils Gladitz
On 08/22/2016 12:18 PM, Albrecht Schlosser wrote: On 22.08.2016 10:33 Nils Gladitz wrote: The visual studio command line environments should have no effect when using the visual studio generators. Are you sure? Or what does "should" mean here? ;-) Yes. The Visual Studio gene

Re: [CMake] Wrong version of cl.exe for x64

2016-08-22 Thread Nils Gladitz
On 08/22/2016 10:28 AM, J Decker wrote: Maybe you need a diferent parameter to vcvarsall before running cmake https://msdn.microsoft.com/en-us/library/x4d2c09s.aspx The visual studio command line environments should have no effect when using the visual studio generators. They should only be

Re: [CMake] Wrong version of cl.exe for x64

2016-08-22 Thread Nils Gladitz
On 08/22/2016 09:27 AM, tonka tonka wrote: Hey, I have recently switched to cmake (instead of plain visual studio). Now i discovered a problem.cmake choose the wrong cl.exe for my x64 project. I don't think CMake chooses the compiler when using the visual studio generators. Visual Studio

Re: [CMake] Suppressing policy warnings

2016-08-19 Thread Nils Gladitz
On 08/19/2016 11:18 AM, Robert Bielik wrote: Hi, I'm currently using CMake 3.5.0 and I get TONS of CMP0054 policy warnings. So I set the policy: cmake_policy(SET CMP0054 OLD) in top level CMakeLists.txt file. Nothing happens. I STILL get TONS of warnings. Help ? cmake_minimum_required(VER

Re: [CMake] problem creating cmake for ns3 library

2016-07-31 Thread Nils Gladitz
On 31.07.2016 09:19, Kapil Gupta wrote: -- Looking for lib ns3-core -- Looking for lib ns3-core - not found There might be more issues but to start with: In https://github.com/kneelb4darth/qosManet/blob/master/cmake/FindNS3.cmake#L23 NAME should be NAMES. Same here: https://github.

Re: [CMake] Policy CMP0063 is not set: Honor visibility properties for all target

2016-06-18 Thread Nils Gladitz
On 18.06.2016 13:28, Alexander Shukaev wrote: But they in fact do. How come? I am not sure what facts you mean ... they don't: cmake_policy(SET CMP0063 NEW) cmake_policy(GET CMP0063 POLICY_VALUE_BEFORE) cmake_minimum_required(VERSION 3.1.0) cmake_policy(GET CMP0063 POLICY_VALUE_A

Re: [CMake] Policy CMP0063 is not set: Honor visibility properties for all target

2016-06-18 Thread Nils Gladitz
On 18.06.2016 13:03, Alexander Shukaev wrote: if(POLICY CMP0011) cmake_policy(SET CMP0011 NEW) endif() if(POLICY CMP0063) cmake_policy(SET CMP0063 NEW) endif() CMakeLists.txt: include(xxx) cmake_minimum_required(VERSION 3.1.0) and it still works. Is it because the version is high enough

Re: [CMake] Policy CMP0063 is not set: Honor visibility properties for all target

2016-06-18 Thread Nils Gladitz
On 18.06.2016 11:38, Alexander Shukaev wrote: I did try both variants, after and before cmake_minimum_required(VERSION) but the result is the same. The scope is for sure parent to targets. I don't know what else it could be but this works fine for me: cmake_minimum_required(VERSION 2.8.

Re: [CMake] Policy CMP0063 is not set: Honor visibility properties for all target

2016-06-18 Thread Nils Gladitz
On 18.06.2016 09:34, Alexander Shukaev wrote: Hello, CMake 3.5.2 here. Why explicitly setting the CMP0063 policy to NEW does not suppress the warning and actually use that new policy? That is if(POLICY CMP0063) cmake_policy(SET CMP0063 NEW) endif() and I still get Policy CMP0063 is no

Re: [CMake] Finding 32bit libs on 64bit Ubuntu install

2016-04-25 Thread Nils Gladitz
On 22.04.2016 20:59, Nick Deubert wrote: Hey everyone, I am trying to build and link some 32bit binaries on Ubuntu 15.10 64bit, but no matter what combination of arguments I give FIND_LIBRARY I cannot get it to use the 32bit libs. I have been scouring the mailing lists and came up with all these

Re: [CMake] Version compatibility?

2016-04-25 Thread Nils Gladitz
On 04/25/2016 02:29 PM, Craig Scott wrote: I personally have found myself having to look up to his sort of version info a lot lately. It sounds like others do too. Perhaps a more sustainable approach would be to include the version details in the CMAKE docs themselves. For each command, module,

Re: [CMake] Finding all the libraries except for one located in the last path dir

2016-04-05 Thread Nils Gladitz
On 05.04.2016 23:31, Salazar De Troya, Miguel wrote: with no line break, whereas the output variable lib_dirs: message(${lib_dirs}) /usr/lib/lib/usr/lib64/usr/local/tools/vtk-6.1.0/lib/g/g92/miguel/petsc-3.6.2/miguel-opt/lib/usr/local/tools/openmpi-intel-1.8.4/lib/usr/local/tools/ic-14.0.174

Re: [CMake] VERSION and SOVERSION in a module

2016-04-04 Thread Nils Gladitz
On 04/04/2016 10:33 AM, Kristian wrote: Hey, I have a question. I have a project, which is compiled on two different build machines with ninja (trunk and branch). The CMakeLists.txt is the same when it comes to a part, where the VERSION and SOVERSION part is set through the function 'set_target_

Re: [CMake] Debian SID / CMake 3.5.0-1 / FindBoost / CTest

2016-03-29 Thread Nils Gladitz
On 03/29/2016 10:31 AM, Vincent Huber wrote: Hello everyone, In a |CTest| process, I have to determine the |Boost_VERSION|. To do so, I just add |FIND_PACKAGE(Boost)| to my configuration file. I didn’t had any problems since a |cmake| update on Debian/SID to cmake 3.5.0. From now, I have: |-

Re: [CMake] execute_process seems to execute in parallel and also only shows output of last command

2016-03-24 Thread Nils Gladitz
On 03/24/2016 12:58 PM, xyzdra...@fastmail.fm wrote: The CMake 3.5.0 documentation specifies the execute_process command like this: execute_process(COMMAND [args1...]] [COMMAND [args2...] [...]] [WORKING_DIRECTORY ] [...] ) T

Re: [CMake] [cmake-developers] Appending to LINK_FLAGS property of a target doesn't seem to work correctly

2016-03-04 Thread Nils Gladitz
On 03/04/2016 12:42 PM, Dan Liew wrote: Thanks for this. Shouldn't the fact that ``LINK_FLAGS`` is a string property and not a list property be in the ``cmake-properties`` documentation? The version of the documentation for my version of CMake (3.4.3) doesn't say what the property type is. Perh

Re: [CMake] [cmake-developers] Appending to LINK_FLAGS property of a target doesn't seem to work correctly

2016-03-03 Thread Nils Gladitz
On 03.03.2016 22:57, Dan Liew wrote: Hi, I noticed recently is you do something like this add_executable(foo a.cpp b.cpp) set_property(TARGET shell APPEND PROPERTY LINK_FLAGS "-fopenmp") set_property(TARGET shell APPEND PROPERTY LINK_FLAGS "-static") then the flags that end up being passed to

Re: [CMake] Good practice: using INTERFACE-libraries in FindABC.cmake?

2016-02-29 Thread Nils Gladitz
On 02/29/2016 04:06 PM, Clément Gregoire wrote: Speaking of imported targets, I'm wondering why alias imported targets aren't added to all default FindXXX.cmake scripts. This would help provide better examples, and have the community use better cmakelists.txt and hopefully reduce the bad usag

Re: [CMake] Good practice: using INTERFACE-libraries in FindABC.cmake?

2016-02-29 Thread Nils Gladitz
On 02/29/2016 03:34 PM, Patrick Boettcher wrote: Hi list, I came across the INTERFACE-type of libraries when writing a FindModule.cmake-file for custom libraries installed by my project. Here is what I'm doing after having found the libraries and the determined the paths: LIB1 is the library an

Re: [CMake] A function and its arguments

2016-02-28 Thread Nils Gladitz
On 28.02.2016 21:57, Kristian wrote: [...] test_me(1 2 3) Then I get this output: test_me -> 1 -> 2 -> Number of arguments: 3 -> All arguments: 123 -> 0. argument: 1 -> 1.

Re: [CMake] globs case sensitivity depends on platform

2016-01-28 Thread Nils Gladitz
On 01/28/2016 12:56 PM, 🐋 Jan Hegewald wrote: Hi all, I have some trouble with file globbing using the glob command like so: file(GLOB all_sources ${src_home}/*.F**) You might already be aware but CMake discourages using GLOB for source files; though for different reasons (see Note in

Re: [CMake] Multiple Visual Studio Solutions through same master CMakeLists.txt

2016-01-28 Thread Nils Gladitz
On 01/28/2016 12:42 PM, Nikita Barawade wrote: Hi All , It is possible to same master CMakeList to generate multiple visual studio solution files ? here is my master CMakeList : cmake_minimum_required (VERSION 2.8.11) project (Myproject_all) set_property (GLOBAL PROPERTY USE_FOLDERS ON

Re: [CMake] Importing a static library, then adding dependencies. Should the dependencies be transitive? They aren't for me!

2016-01-26 Thread Nils Gladitz
On 26.01.2016 21:25, Johnson, Matt (GE Healthcare) wrote: I'm using the Visual Studio 2013 generator and cmake 3.4.3. Example: add_library(NS::a_lib STATIC IMPORTED) set_target_properties(NS::a_lib PROPERTIES IMPORTED_LOCATION ${a_lib_location}) set_target_properties(NS::a_lib PROPERTIES INTERFAC

Re: [CMake] How to override CMAKE_C_IMPLICIT_LINK_LIBRARIES

2016-01-25 Thread Nils Gladitz
On 01/26/2016 06:35 AM, 陆秋文 wrote: I have the need to link a shared library to all the targets without modifying the CMakeLists.txt(for example, tcmalloc.so). I used the command: # cmake -DCMAKE_C_IMPLICIT_LINK_LIBRARIES:STRING=tcmalloc However, It didn't work. I used the message() command to

Re: [CMake] Code::blocks: parallel build from IDE

2016-01-17 Thread Nils Gladitz
On 17.01.2016 12:45, Dimitri Kaparis wrote: On Sat, Jan 9, 2016 at 9:16 PM, Alexander Neundorf mailto:a.neundorf-w...@gmx.net>> wrote: Oops, sorry, that's not implemented for C::B. Alex Any plans on it, or an idea for a workaround? As a workaround perhaps "CodeBlocks - Ninja" woul

Re: [CMake] Why does INTERFACE type targets only support whitelisted properties?

2016-01-08 Thread Nils Gladitz
On 01/08/2016 02:50 PM, Yves Frederix wrote: You are explicitly mentioning 'setting' of a property. IMHO there is a big difference between setting and getting a property. If white/blacklisting is enforced during setting only, wouldn't this be sufficient? This would make it possible to simply ac

Re: [CMake] Why does INTERFACE type targets only support whitelisted properties?

2016-01-08 Thread Nils Gladitz
On 01/08/2016 01:07 PM, Yves Frederix wrote: It might help the discussion if you could elaborate what use cases you have in mind for non-whitelisted properties. I deliberately did not mention my particular use case from the start simply because I am interested in the reasoning behind the limitat

Re: [CMake] Why does INTERFACE type targets only support whitelisted properties?

2016-01-08 Thread Nils Gladitz
On 01/08/2016 11:22 AM, Yves Frederix wrote: Hi all, Motivated by my own struggles with targets of type INTERFACE and a recent post on this list, I was wondering what is the rationale behind allowing only a whitelisted set of properties on targets of this type. I understand that one of the use c

Re: [CMake] Cannot set FOLDER property to an interface (header-only) target

2015-12-31 Thread Nils Gladitz
On 31.12.2015 14:19, David Cole via CMake wrote: I can't think of a reason why we would not whitelist the FOLDER property... Unless somebody else chimes in with one, perhaps you could submit a proposed patch to whitelist it? As far as I remember INTERFACE libraries don't generate visual studio

Re: [CMake] How to get current visualstudio version?

2015-12-28 Thread Nils Gladitz
On 28.12.2015 06:50, Xi Shen wrote: Strange, the FindBoost module expects boost libraries start with "boost_" by default. But the libraries I got from the default build configuration start with "libboost_". No wonder it did not work the first I tried. This somewhat depends on platform but as

  1   2   3   4   5   >