[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: CMake Error: Could not open file for write in copy operation ... System Error: Permission denied



El 23/10/14 a les 18:01, Martin Steghöfer ha escrit:
The line in question says:
configure_file("${CMAKE_CURRENT_LIST_DIR}/bin/qt.conf" "${CMAKE_CURRENT_BINARY_DIR}/qt.conf")
where CMAKE_CURRENT_BINARY_DIR is "/usr/bin".

A little correction: It actually said RUNTIME_OUTPUT_DIR (which is "/usr/bin") in the original file, not CMAKE_CURRENT_BINARY_DIR (which would be better!).

The point stays the same: You are configuring files to /usr/bin/, which is not a good idea.

Cheers,
Martin


Reply to: