Skip to content

cmake does not create build files in current directory but in ~/Projects/indi #1781

@Vulisha

Description

@Vulisha

Describe the bug
Usually build has been made in directory where you are located, for some reason now build files are written to project root.

To Reproduce

mkdir -p ~/Projects/build/indi-core
cd ~/Projects/build/indi-core
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/indi
make -j4
sudo make install

OR

cd ~/Projects/indi
./developer-build.bash

results in

-- The following components are going to be built:
-- ## INDI Server
-- ## INDI Drivers, Tools, and Examples
-- ## INDI Client
-- Configuring done
-- Generating done
-- Build files have been written to: /home/astroberry/Projects/indi

-- Build files have been written to: /home/astroberry/Projects/indi
[Build target not found ](make: *** No targets specified and no makefile found. Stop.)

Expected behavior
Should build from directory specified not in ~/Projects/indi

Desktop (please complete the following information):

  • OS: RpiOS
  • Bullseye

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions