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

Cannot set "VCG_INCLUDE_DIRS": current scope has no parent. #223

Closed
anasel01 opened this issue Jun 7, 2023 · 3 comments
Closed

Cannot set "VCG_INCLUDE_DIRS": current scope has no parent. #223

anasel01 opened this issue Jun 7, 2023 · 3 comments

Comments

@anasel01
Copy link

anasel01 commented Jun 7, 2023

anas@anas-VirtualBox:~/VCG/build$ cmake ..
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) at CMakeLists.txt:17 (set):
Cannot set "VCG_INCLUDE_DIRS": current scope has no parent.
This warning is for project developers. Use -Wno-dev to suppress it.

-- - Eigen - using bundled source
-- Configuring done
-- Generating done
-- Build files have been written to: /home/anas/VCG/build

anas@anas-VirtualBox:~/VCG/build$ make install
make: *** No rule to make target 'install'. Stop.

@jenadzitsiuk
Copy link

Same issue. How to solve it?

@c2k19zwh
Copy link

c2k19zwh commented Mar 5, 2024

I met the same problem, too. how to solve it?

@alemuntoni
Copy link
Member

Cannot set "VCG_INCLUDE_DIRS": current scope has no parent is a warning, you can ignore it.

the cmake configuration of vcg does not have an install rule, therefore just don't run install.
VCG is header only: just add the project directory in the include path, and include the header files you need.
If you have a cmake project, you can also use it by doing add_subdirectory and then linking the vcglib target.

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

4 participants