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
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
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
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
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 .
>>>
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
> 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
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
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 .
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
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
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
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
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 ?
--
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
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
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
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
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
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
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
-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
> >
> > 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
> 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
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
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
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
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
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
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
--
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
53 matches
Mail list logo