metainfo wrong target dir?
Yu Jin
technikmagma at gmail.com
Tue May 14 16:16:49 UTC 2024
Hi,
I get this error on the current master when building the INSTALL
CMakeTarget.
29>CMake Error at cmake_install.cmake:3953 (file):
29> file cannot create directory: C:/Program Files (x86)/LyX/metainfo.
Maybe
29> need administrative privileges.
29>
29>
29>C:\Program Files\Microsoft Visual
Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5):
error MSB3073: The command "setlocal
29>C:\Program Files\Microsoft Visual
Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5):
error MSB3073: "C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P
cmake_install.cmake
29>C:\Program Files\Microsoft Visual
Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5):
error MSB3073: if %errorlevel% neq 0 goto :cmEnd
29>C:\Program Files\Microsoft Visual
Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5):
error MSB3073: :cmEnd
29>C:\Program Files\Microsoft Visual
Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5):
error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
29>C:\Program Files\Microsoft Visual
Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5):
error MSB3073: :cmErrorLevel
29>C:\Program Files\Microsoft Visual
Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5):
error MSB3073: exit /b %1
29>C:\Program Files\Microsoft Visual
Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5):
error MSB3073: :cmDone
29>C:\Program Files\Microsoft Visual
Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5):
error MSB3073: if %errorlevel% neq 0 goto :VCEnd
29>C:\Program Files\Microsoft Visual
Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5):
error MSB3073: :VCEnd" exited with code 1.
Code in cmake_install.cmake:
if(CMAKE_INSTALL_COMPONENT STREQUAL "Unspecified" OR NOT
CMAKE_INSTALL_COMPONENT)
list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES
"C:/Program Files (x86)/LyX/metainfo/org.lyx.LyX.metainfo.xml")
if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION)
message(WARNING "ABSOLUTE path INSTALL DESTINATION :
${CMAKE_ABSOLUTE_DESTINATION_FILES}")
endif()
if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION)
message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by
caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
endif()
file(INSTALL DESTINATION "C:/Program Files (x86)/LyX/metainfo" TYPE FILE
FILES "C:/lyx/master/lib/org.lyx.LyX.metainfo.xml")
endif()
Why does it try to install that file into my Program Files dir and not into
CMAKE_INSTALL_PREFIX?
--
Eugene
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20240514/e3041242/attachment.html>
More information about the lyx-devel
mailing list