Skip to content

Windows: cmake install installs to C:\.local\linkahead

Summary

Running the install target of cmake will copy the files to C:\.local\linkahead. This is not a useful location.

Expected Behavior

The user's appdata folder my be a better default, e.g. %appdata%\linkahead

Actual Behavior

Install into C:\.local\linkahead

Steps to Reproduce the Problem

Please describe, step by step, how others can reproduce the problem. Please try these steps for yourself on a clean system.

  1. cmake --install

Specifications

  • Version: 0.3-dev
  • Platform: Windows 11

Possible fixes

if(NOT DEFINED CMAKE_INSTALL_PREFIX)
  set(CMAKE_INSTALL_PREFIX "$ENV{LOCALAPPDATA}/linkahead")
endif()