[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Mingw-cross-env-list] Armadillo - cmake global package registry issue (
From: |
Tony Theodore |
Subject: |
[Mingw-cross-env-list] Armadillo - cmake global package registry issue (was: New updates for master branch) |
Date: |
Sat, 20 Apr 2013 17:00:10 +1000 |
On 20/04/2013, at 4:29 PM, Tony Theodore <address@hidden> wrote:
> On 16/04/2013, at 12:43 PM, Niels Kristian Bech Jensen <address@hidden> wrote:
>
>> Configuring the armadillo package leaves a file in the hidden directory
>> .cmake/packages/armadillo which contains the patch to the source directory
>> (/home/nkbj/mxe/tmp-armadillo/armadillo-3.800.2). It is the first time I
>> encounter this behaviour from cmake and I do not like polution of my home
>> directory. The file name is 950318bb345f78e9decf0b3e04f57ba6 (probably
>> changing).
>
> It seems to be related to cmake's package registry [1]:
>
> CMakeLists.txt:364
> # Export the package for use from the build-tree
> # (this registers the build-tree with a global CMake-registry)
> if(CMAKE_VERSION VERSION_GREATER "2.7")
> export(PACKAGE armadillo)
> endif()
>
> I'm not familiar enough with cmake to remove it, and it would likely affect
> any existing native install, so we certainly want to prevent that. Any ideas?
>
> Cheers,
>
> Tony
>
>
> [1] http://www.cmake.org/Wiki/CMake/Tutorials/Package_Registry
I've disabled the build for the time being and asked the author of the original
submission to take a look:
https://github.com/mxe/mxe/commit/a147243bafad3ae268ee1586b25f4ef46cfe7514#commitcomment-3051877
Cheers,
Tony