[CMake] CMake install doesn't find binary that CMake built?

2019-05-30 Thread Benjamin Shadwick
Using CMake 3.12.2. Consider the following project: project(myproject) set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) set(CMAKE_INSTALL_PREFIX

[CMake] CMAke install files using cmake-generator-expression

2018-01-15 Thread Lars
Hello, Using CMake 3.8.1 on Windows 7 SP1. The following cmake expression will produce an error. INSTALL( FILES $<$${COMP_PATH}/win32/bin/comp.dll> DESTINATION "${install_dir}") "CMake error: Error evaluating generator expression: $. $ may only be used with binary targets. It

Re: [CMake] cmake install

2017-09-12 Thread Adam Getchell
ackson > > > From: CMake <cmake-boun...@cmake.org> on behalf of Adam Getchell > <adam.getch...@gmail.com> > Date: Friday, September 8, 2017 at 9:20 PM > To: Craig Scott <craig.sc...@crascit.com> > Cc: CMake <cmake@cmake.org> > Subject

Re: [CMake] cmake install

2017-09-10 Thread Michael Jackson
tt <craig.sc...@crascit.com> Cc: CMake <cmake@cmake.org> Subject: Re: [CMake] cmake install On Sep 8, 2017, at 6:11 PM, Craig Scott <craig.sc...@crascit.com> wrote: I tried: # cmake -G Ninja . # cmake --build . # cmake --build . --target install This should be corr

Re: [CMake] cmake install

2017-09-08 Thread Craig Scott
On Sat, Sep 9, 2017 at 11:25 AM, Craig Scott wrote: > > > On Sat, Sep 9, 2017 at 11:19 AM, Adam Getchell > wrote: > >> >> On Sep 8, 2017, at 6:11 PM, Craig Scott wrote: >> >>> >>> I tried: >>> >>> # cmake -G Ninja . >>>

Re: [CMake] cmake install

2017-09-08 Thread Craig Scott
On Sat, Sep 9, 2017 at 11:19 AM, Adam Getchell wrote: > > On Sep 8, 2017, at 6:11 PM, Craig Scott wrote: > >> >> I tried: >> >> # cmake -G Ninja . >> # cmake --build . >> # cmake --build . --target install >> > > This should be correct. Did this

Re: [CMake] cmake install

2017-09-08 Thread Adam Getchell
> On Sep 8, 2017, at 6:11 PM, Craig Scott wrote: > > I tried: > > # cmake -G Ninja . > # cmake --build . > # cmake --build . --target install > > This should be correct. Did this not work for you? No. https://travis-ci.org/acgetchell/CDT-plusplus/jobs/273498700

Re: [CMake] cmake install

2017-09-08 Thread Craig Scott
On Sat, Sep 9, 2017 at 9:56 AM, Adam Getchell wrote: > Hello all, > > If I want to use CMake to invoke my build system, I can use: > > # cmake -- build . > > What’s the syntax for invoking the build system installer from cmake, i.e. > the equivalent of: > > # cmake -G

[CMake] cmake install

2017-09-08 Thread Adam Getchell
Hello all, If I want to use CMake to invoke my build system, I can use: # cmake -- build . What’s the syntax for invoking the build system installer from cmake, i.e. the equivalent of: # cmake -G Ninja . # ninja # ninja install I tried: # cmake -G Ninja . # cmake --build . # cmake --build .

Re: [CMake] cmake install script

2017-05-29 Thread Craig Scott
Try the tarball rather than the self-extracting script. The contents are the same, but the tarball won't require a license acceptance. On Tue, May 30, 2017 at 5:26 AM, tonka tonka wrote: > Hey@everybody, > > I have a little problem with the cmake installer script on

[CMake] cmake install script

2017-05-29 Thread tonka tonka
Hey@everybody, I have a little problem with the cmake installer script on Ubuntu. I need the latest cmake,so that's the only way. The script works fine but now I want to automate the cmake install on my ci server, but the license accept prompt block me. The default answer is no, so the script

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

[CMake] CMake install imported target using WIX

2017-02-21 Thread Lars
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 IMPORTED) This works fine and once I read

[CMake] cmake install ends with error code 0xC0000022

2017-02-01 Thread Benjamin Ballet via CMake
Hi, I'm using install(CODE"... to run windeployqt.exe during installation It works fine for a few exe or dll then it fails the installation with error code 0xC022 because of the last execute_process(... If I remove the incriminating dll, it fails with the next one. Any hints ? --

[CMake] cmake install multiple artifacts

2016-10-05 Thread Tom Gwozdz
Hello, I'm using CMake to cross compile some code using Emscripten. Emscripten generates html/javascript files from c++ input files. In my case, my generated binary output is an html file that loads in a javascript file. Both files are generated from the final link step. When I do the

Re: [CMake] cmake install target doesn't run ldconfig after installing library

2016-06-19 Thread Young Yang
Thanks :) I think there should be better solutions. But It's the best solution I know so far. On Fri, Jun 17, 2016 at 9:07 PM, Matthew Keeler wrote: > So I did some experimenting. It would seem there are a few rules to the > order installs are executed > > 1 - installs are

Re: [CMake] cmake install target doesn't run ldconfig after installing library

2016-06-17 Thread Matthew Keeler
So I did some experimenting. It would seem there are a few rules to the order installs are executed 1 - installs are processed in the order the containing CMakeLists.txt files are 2 - within a CMakeLists.txt they seem to be ordered based on which comes first in the file. So a not so elegant

Re: [CMake] cmake install target doesn't run ldconfig after installing library

2016-06-16 Thread Young Yang
Thanks! This command really solve my problem. But I still get a problem about the command order now. I have some sub directories. For e.g. One of them is called "src" and there is also a CMakeLists.txt in it. And the shared library installation instructions are in it. So I have

Re: [CMake] cmake install target doesn't run ldconfig after installing library

2016-06-16 Thread Matthew Keeler
CMake won’t and in my opinion shouldn’t implicitly invoke ldconfig for you. There are many scenarios and platforms where this is incorrect behavior and some such as running install to prepare for packaging that CMake wouldn’t reliably be able to detect. If you want to provide the functionality

[CMake] cmake install target doesn't run ldconfig after installing library

2016-06-15 Thread Young Yang
Hi, I've encountered some problem when writing install target with cmake. I use `install (TARGETS DESTINATION lib)` to install my shared_library. However, when I run `make install`. It just install the .so to /usr/local/lib and didn't run the ldconfig. I think it is strange and inconvenient to

Re: [CMake] cmake install behaviour with git

2015-10-01 Thread Nils Gladitz
On 10/01/2015 08:35 AM, Jörg Kreuzberger wrote: This comes from installs, there we install some configuration files with the builded targets. e.g. you install a builded executable, together with an config xml file from SCM. If you make a product install, you want to "overwrite" the original

Re: [CMake] cmake install behaviour with git

2015-10-01 Thread Jörg Kreuzberger
-Ursprüngliche Nachricht- Von:Nils Gladitz <nilsglad...@gmail.com> Gesendet: Do 01.10.2015 09:40 Betreff: Re: [CMake] cmake install behaviour with git An: Jörg Kreuzberger <j.kreuzber...@procitec.de>; cmake@cmake.org; > On 10/01/2015 08:35 AM, Jörg Kr

Re: [CMake] cmake install behaviour with git

2015-10-01 Thread Jörg Kreuzberger
> > > > Now install behaves differnt, cause cmake checks only file time difference. > Files previously overwritten are now > > considered Up-to-date > > Why would you want to overwrite files that have not changed? This comes from installs, there we install some configuration files with the

Re: [CMake] cmake install behaviour with git

2015-10-01 Thread Jörg Kreuzberger
> What was unclear to me is that it now sounds like you are installing two > distinct files from your repository to the same destination file rather > than re-installing a modified version of the same file. Yes, your are right i am doing exactly this > I think that is conceptually an error

Re: [CMake] cmake install behaviour with git

2015-10-01 Thread Nils Gladitz
On 10/01/2015 10:12 AM, Jörg Kreuzberger wrote: -Ursprüngliche Nachricht- Von:Nils Gladitz <nilsglad...@gmail.com> Gesendet: Do 01.10.2015 09:40 Betreff: Re: [CMake] cmake install behaviour with git An: Jörg Kreuzberger <j.kreuzber...@procitec.de>; cma

Re: [CMake] cmake install behaviour with git

2015-09-30 Thread Jakob van Bethlehem
Hej, > > Now install behaves differnt, cause cmake checks only file time difference. > Files previously overwritten are now > considered Up-to-date Why would you want to overwrite files that have not changed? > Has anyone found a solution for this after a git migration? We’re using CMake

[CMake] cmake install behaviour with git

2015-09-30 Thread Jörg Kreuzberger
Hi! the cmake install behaviour of files was ok for me, as long as we used svn. Now we changed to git and i have a problem now with the install behaviour. On git the timestamps of all files get the time of the clone. So files not build (e.g. configuration files, xml files etc) from the

[CMake] cmake install qt5 library to Specified directory?

2015-03-11 Thread kl222
Hello all: I thank to install qt5(=5.3.0) library to sepcified directory. I write: get_target_property(QtCore_location Qt5::Core LOCATION) install(files ${QtCore_location} DESTINATION .) Ok, it is copy /usr/local/Qt-5.5.0/lib/libQt5Core.so.5.5.0 to destination directory, but it don't

[CMake] CMAKE Install Configurations

2014-12-17 Thread Eddy Ilg
Hi, I am trying to set up a project that has fine-grained installation control. The hierarchy is like this: Project Group Component There should be three install variants: 1. make install should install the whole project. 2. make Group1-install should install everything that is

[CMake] CMAKE install command post process the file

2011-12-28 Thread vivek goel
I am installing static file using cmake INSTALL command I want to post process the output file using cmake example Static files are having string like v={{VERSION}} I want to replace {{VERSION}} in the output files. Is it possible with cmake ? using utility like sed. -- regards Vivek Goel --

Re: [CMake] CMAKE install command post process the file

2011-12-28 Thread Eric Noulard
2011/12/28 vivek goel goelvivek2...@gmail.com: I am installing static file using cmake INSTALL command I want to post process the output file using cmake example Static files are having string like v={{VERSION}} I want to replace {{VERSION}} in the output files. Is it possible with

Re: [CMake] cmake install overrode my PATH instead of appending to it

2009-12-18 Thread Mark Jones
Hi David, My path at work is 1907 characters long right now. If I have some spare time soon, I'll try it again to see what happens. I don't know if PATH length is the key, it is just something I wondered about since that is a definite difference between home and work (though there are many

Re: [CMake] cmake install overrode my PATH instead of appending to it

2009-12-13 Thread Mark Jones
Hi David, I was using the latest installer that I downloaded from the cmake page: http://www.cmake.org/files/v2.8/cmake-2.8.0-win32-x86.exe I am using Windows XP SP3. I have a relatively long PATH already. Is your PATH very long on the system that you tried to reproduce this on? I wonder if

Re: [CMake] cmake install overrode my PATH instead of appending to it

2009-12-13 Thread David Cole
Can you give exact steps to reproduce and tell me exactly how you are observing the replacement? i.e.: - set your user PATH to something that is N characters long with M semi-colon separated components - look at My Computer Properties Advanced Environment Variables user PATH value to see the

[CMake] cmake install overrode my PATH instead of appending to it

2009-12-12 Thread Mark Jones
I chose to add cmake to my PATH (on Win XP 32) during the installation. After it finished I noticed that it completely overrode my PATH instead of appending to it. Is this a known bug? Thanks, Mark ___ Powered by www.kitware.com Visit other Kitware

Re: [CMake] cmake install overrode my PATH instead of appending to it

2009-12-12 Thread David Cole
There are bug reports about that, but I cannot reproduce that bug here... What CMake installer were you running? Where did you get it from? See these bugs for more details: http://public.kitware.com/Bug/view.php?id=9878 http://public.kitware.com/Bug/view.php?id=8959 If you have steps to

[CMake] CMake install and CPack

2008-11-07 Thread KSpam
My project has hundreds of individual install components. The various components are needed for my CPack scripts; however most (all but 1) components should not be installed as part of a normal make install. Unfortunately, make install installs all of the components. Ideally, I would like a

Re: [CMake] CMake install and CPack

2008-11-07 Thread Timothy M. Shead
KSpam wrote: My project has hundreds of individual install components. The various components are needed for my CPack scripts; however most (all but 1) components should not be installed as part of a normal make install. Unfortunately, make install installs all of the components. Ideally, I

[CMake] cmake install and rpath

2007-10-17 Thread James Bigler
I tried digging through through the mailing list and experimenting on my own, but I don't seem to be able to figure this out. I have a toy project that has a shared library and an executable. I've set it up, so that it can be installed to what ever the CMAKE_INTALL_PREFIX is which works

Re: [CMake] cmake install and rpath

2007-10-17 Thread a . neundorf-work
On Wednesday 17 October 2007 15:57, James Bigler wrote: I tried digging through through the mailing list and experimenting on my own, but I don't seem to be able to figure this out. I have a toy project that has a shared library and an executable. I've set it up, so that it can be installed

Re: [CMake] cmake install and rpath

2007-10-17 Thread James Bigler
Does anyone have any examples of creating relative rpaths for installation? James James Bigler wrote: I tried digging through through the mailing list and experimenting on my own, but I don't seem to be able to figure this out. I have a toy project that has a shared library and an

Re: [CMake] cmake install - problem at copy

2007-07-10 Thread B. Carrupt
It's working now, thanks. I had to add /usr/local/lib in ld.so.conf (don't know why it's not there by default) so that the wx libraries could be found. What I don't understand is why it was working when I ran the binary from the build/bin directory of cmake directly (or when I copied it

Re: [CMake] cmake install - problem at copy

2007-07-10 Thread Clark J. Wang
On 7/10/07, B. Carrupt [EMAIL PROTECTED] wrote: It's working now, thanks. I had to add /usr/local/lib in ld.so.conf (don't know why it's not there by default) so that the wx libraries could be found. What I don't understand is why it was working when I ran the binary from the build/bin

[CMake] cmake install - problem at copy

2007-07-09 Thread digicapt - cmake
Hi, I'm using the version 2.4-patch 6 of cmake on a Fedora core 6 and I have a problem with the INSTALL : the generated target works fine (in the build directory) but the copy in the destination is changed so that some libraries are not found anymore. When I check them, the size of the copied

Re: [CMake] cmake install - problem at copy

2007-07-09 Thread Alan W. Irwin
On 2007-07-09 14:37+0200 digicapt - cmake wrote: Hi, I'm using the version 2.4-patch 6 of cmake on a Fedora core 6 and I have a problem with the INSTALL : the generated target works fine (in the build directory) but the copy in the destination is changed so that some libraries are not found

Re: [CMake] cmake install - problem at copy

2007-07-09 Thread Clark J. Wang
On 7/9/07, digicapt - cmake [EMAIL PROTECTED] wrote: Hi, I'm using the version 2.4-patch 6 of cmake on a Fedora core 6 and I have a problem with the INSTALL : the generated target works fine (in the build directory) but the copy in the destination is changed so that some libraries are not

Re: [CMake] Cmake: INSTALL not working with subdirectories

2007-01-17 Thread Axel Roebel
On Wednesday 17 January 2007 12:18, Otavio Rodolfo Piske wrote: Hi Eric, On 1/17/07, Eric Noulard [EMAIL PROTECTED] wrote: 2007/1/16, Otavio Rodolfo Piske [EMAIL PROTECTED]: Hi, I almost solve the problem! I took a closer look at my top-level CMakeLists.txt and could find it

Re: [CMake] Cmake: INSTALL not working with subdirectories

2007-01-16 Thread Eric Noulard
Your files looks good to me. Provider you have properly defined ${N_LIBRARY_DIR} ${N_ARCHIVE_DIR} * in your specific include files which seems to be the case for http://svn.angusyoung.org/nus/CMakeLists.txt.linux May be you can try a make VERBOSE=1 install in order to see a little more what

Re: [CMake] Cmake: INSTALL not working with subdirectories

2007-01-16 Thread Otavio Rodolfo Piske
Hi, I almost solve the problem! I took a closer look at my top-level CMakeLists.txt and could find it referencing to a directory that it shouldn't. After I commented it, it now installs the files of the last one of the processed modules in the top-level CMakeLists.txt. If you take a look at it

Re: [CMake] Cmake: INSTALL not working with subdirectories

2007-01-16 Thread Eric Noulard
2007/1/16, Otavio Rodolfo Piske [EMAIL PROTECTED]: Hi, I almost solve the problem! I took a closer look at my top-level CMakeLists.txt and could find it referencing to a directory that it shouldn't. After I commented it, it now installs the files of the last one of the processed modules in the

[CMake] Cmake: INSTALL not working with subdirectories

2007-01-15 Thread Otavio Rodolfo Piske
Hi all, I have been using cmake for my soon-to-be-born project, however I'm having problems during the install part. Even though I add a target to be installed, it is not installed when I run 'make install'. Let me provide some details: my project is separated in modules, with each module

Re: [CMake] Cmake Install problems

2006-06-21 Thread Gaetan Lehmann
On Wed, 21 Jun 2006 16:44:17 +0200, Mike Wells [EMAIL PROTECTED] wrote: I am a total newbie in the Linux installation world. I am trying to install cmake under fedora core 5. When I run ./bootstrap in Cmake directory I get: loading initial cache file

Re: [CMake] Cmake Install problems

2006-06-21 Thread Alexander Neundorf
Original-Nachricht Datum: Wed, 21 Jun 2006 10:44:17 -0400 Von: Mike Wells [EMAIL PROTECTED] An: cmake@cmake.org Betreff: [CMake] Cmake Install problems I am a total newbie in the Linux installation world. I am trying to install cmake under fedora core 5. When I run