Skip to content

Cmake generation fails when cmakepp.cmake is placed in a read-only directory #97

Open
@15knots

Description

@15knots

I installed cmakepp in the cmake modules dir /usr/share/cmake/Modules/, using the rpm under linux.
That directory does not allow write access to normal users.
drwxr-xr-x 9 root root 15016 12. Mär 21:51 /usr/share/cmake/Modules/

If I add the line
include(cmakepp)
to my CMakeLists.txt, cmake properly finds cmakepp.

But I get lots errors when I let cmake generate the build scripts:

CMake Error at /usr/share/cmake/Modules/cmakepp.cmake:16892 (file):
file Internal CMake error when trying to open file:
/usr/share/cmake/Modules/tmp/file_make_temporary_LjZKhAz1k3.tmp for
writing.
Call Stack (most recent call first):
/usr/share/cmake/Modules/cmakepp.cmake:5441 (file_make_temporary)
/usr/share/cmake/Modules/cmakepp.cmake:15617 (eval)
/usr/share/cmake/Modules/cmakepp.cmake:14673 (string_semicolon_decode)
/usr/share/cmake/Modules/cmakepp.cmake:21917 (structured_list_parse)
/usr/share/cmake/Modules/cmakepp.cmake:33436 (config_setup)
CMakeLists.txt:35 (include)

Just for the records, not a showstopper for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions