* [gentoo-user] CMake and empty directories
@ 2009-04-15 15:17 Patrick Holthaus
2009-04-15 15:52 ` Arttu V.
0 siblings, 1 reply; 3+ messages in thread
From: Patrick Holthaus @ 2009-04-15 15:17 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1339 bytes --]
Hello gentooers!
Maybe some of you can help me with this one. I'm trying to create an ebuild to
test some of our university software on my laptop. It is using cmake as a
build tool. CMakeLists.txt states the following (among others :)
SET(PREFIX ${CMAKE_INSTALL_PREFIX})
SET(INCLUDEDIR_B "${PREFIX}/include")
INSTALL(CODE "FILE(MAKE_DIRECTORY ${INCLUDEDIR_B}/iwPlugins)")
Everything is compiling fine, but the install procedure gets interrupted with a
sandbox violation:
ACCESS DENIED mkdir: /usr/include/iwPlugins
CMake Error at cmake_install.cmake:92 (FILE):
file problem creating directory: /usr/include/iwPlugins
It seems for me that the variable INCLUDEDIR_B is not expanded to the sandbox
path but /usr/include within the CODE statement. Other INSTALL instructions
like FILES and TARGETS work fine. Is it advisable to have another method of
creating an empty directory?
Thanks in advance
Patrick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 489 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] CMake and empty directories
2009-04-15 15:17 [gentoo-user] CMake and empty directories Patrick Holthaus
@ 2009-04-15 15:52 ` Arttu V.
2009-04-16 7:21 ` Patrick Holthaus
0 siblings, 1 reply; 3+ messages in thread
From: Arttu V. @ 2009-04-15 15:52 UTC (permalink / raw
To: gentoo-user
On 4/15/09, Patrick Holthaus <patrick.holthaus@uni-bielefeld.de> wrote:
> INSTALL(CODE "FILE(MAKE_DIRECTORY ${INCLUDEDIR_B}/iwPlugins)")
<snip/>
> It seems for me that the variable INCLUDEDIR_B is not expanded to the
> sandbox path but /usr/include within the CODE statement.
Just a wild guess from a perl-fan: would it work if you escaped that
dollar sign with a backslash? It might move the expansion around a
bit, maybe even to the right place if you're lucky.
--
Arttu V.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] CMake and empty directories
2009-04-15 15:52 ` Arttu V.
@ 2009-04-16 7:21 ` Patrick Holthaus
0 siblings, 0 replies; 3+ messages in thread
From: Patrick Holthaus @ 2009-04-16 7:21 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 306 bytes --]
Hey Arttu!
> Just a wild guess from a perl-fan: would it work if you escaped that
> dollar sign with a backslash? It might move the expansion around a
> bit, maybe even to the right place if you're lucky.
Tried that, unfortunately it did not have the desired effect.
Thanks for your suggestion.
Patrick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 489 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-04-16 7:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-15 15:17 [gentoo-user] CMake and empty directories Patrick Holthaus
2009-04-15 15:52 ` Arttu V.
2009-04-16 7:21 ` Patrick Holthaus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox