[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: CMake Error
From: Thomas_Lübking <thomas.luebking () gmail ! com>
Date: 2016-02-29 22:50:49
Message-ID: CAAPqV4S8t=-3oStCzP0V490roDzVoQ9VTrrjCEnAQB__KRPArg () mail ! gmail ! com
[Download RAW message or body]
Am Montag, 29. Februar 2016 schrieb Nilesh Kokane :
>
> CMake Error at
> /usr/local/share/ECM/modules/ECMPackageConfigHelpers.cmake:95
> (file):
> file RELATIVE_PATH must be passed a full path to the file:
> Call Stack (most recent call first):
> CMakeLists.txt:55 (ecm_configure_package_config_file)
>
>
> [...]
> My input switch to cmake is
>
> cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
> -DCMAKE_BUILD_TYPE=Release \
> ..
>
> $echo $KF5_PREFIX
> /opt/kf5
>
>
Don't ask me why, but it seems a shell variable visibility problem:
KF5_PREFIX=/opt/kf5 cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX
-DCMAKE_BUILD_TYPE=Release ..
fails here with the same error, but
export KF5_PREFIX=/opt/kf5; cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX
-DCMAKE_BUILD_TYPE=Release ..
works, so KF5_PREFIX needs to be visible to subshells.
Again: not the least idea why; i'd have expected it to be resolved in the
call and that to be sufficient - *shrug*
Cheers,
Thomas
[Attachment #3 (text/html)]
Am Montag, 29. Februar 2016 schrieb Nilesh Kokane :<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><br> CMake Error at \
/usr/local/share/ECM/modules/ECMPackageConfigHelpers.cmake:95<br> (file):<br>
file RELATIVE_PATH must be passed a full path to the file:<br>
Call Stack (most recent call first):<br>
CMakeLists.txt:55 (ecm_configure_package_config_file)<br>
<br><br></blockquote><div>[...] </div><blockquote class="gmail_quote" \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> My input \
switch to cmake is<br> <br>
cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \<br>
-DCMAKE_BUILD_TYPE=Release \
\<br>
..<br>
<br>
$echo $KF5_PREFIX<br>
/opt/kf5<br>
<br></blockquote><div><br></div><div>Don't ask me why, but it seems a shell \
variable visibility problem:</div><div> KF5_PREFIX=/opt/kf5 cmake \
-DCMAKE_INSTALL_PREFIX=$KF5_PREFIX -DCMAKE_BUILD_TYPE=Release ..<br></div><div>fails \
here with the same error, but</div><div> export KF5_PREFIX=/opt/kf5; cmake \
-DCMAKE_INSTALL_PREFIX=$KF5_PREFIX -DCMAKE_BUILD_TYPE=Release ..</div><div>works, so \
KF5_PREFIX needs to be visible to subshells.</div><div>Again: not the least idea why; \
i'd have expected it to be resolved in the call and that to be sufficient - \
*shrug*</div><div> </div><div>Cheers,</div><div>Thomas</div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic