Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake Error When Installing #191

Open
ricejasonf opened this issue Sep 12, 2017 · 4 comments
Open

CMake Error When Installing #191

ricejasonf opened this issue Sep 12, 2017 · 4 comments

Comments

@ricejasonf
Copy link

ricejasonf commented Sep 12, 2017

It's not clear to me what Fit's dependencies are, if any, but the following error looks like it expects boost.hpp to be present in your repo. This is on the boost branch.

-- Installing: /opt/install/include/boost/fit/decorate.hpp
-- Installing: /opt/install/include/boost/fit/lazy.hpp
-- Installing: /opt/install/include/boost/fit/version.hpp
-- Installing: /opt/install/include/boost/fit/static.hpp
CMake Error at cmake_install.cmake:40 (file):
  file INSTALL cannot find
  "/usr/local/src/Fit-a5bb8365ee7b1387ba0ec3a21ac393c7cc962488/include/boost.hpp".

I'm running the following script in the root of the repo:

#!/bin/bash

mkdir build && cd build \
&& cmake \
    -DCMAKE_TOOLCHAIN_FILE=/opt/toolchain.cmake \
    -DCMAKE_INSTALL_PREFIX=/opt/install \
    -DCMAKE_BUILD_TYPE=Release \
    .. \
&& make install

cmake version 3.9.0

@pfultz2
Copy link
Collaborator

pfultz2 commented Sep 12, 2017

Yea, this looks like this broke with the rename to boost. This line is supposed to install the fit.hpp header, but its not necessary when moved under the boost directory.

@pfultz2
Copy link
Collaborator

pfultz2 commented Sep 12, 2017

Ah, and this was caught by travis: https://travis-ci.org/pfultz2/Fit/jobs/273190517#L4119

@ricejasonf
Copy link
Author

Also, fit.hpp is not in the boost directory.

@pfultz2
Copy link
Collaborator

pfultz2 commented Sep 18, 2017

Oops, I forgot that too. Well, I can't change anything until after the review, but thanks for the heads up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants