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: The following variables are used in this project, but they are set to NOTFOUND. #5

Open
ghost opened this issue Dec 31, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 31, 2018

Hi, I got the following error when compiling on Linux:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CPPUNIT_INCLUDE_DIR
used as include directory in directory ~/plast/plast-library/test/unit
CPPUNIT_LIBRARY
linked by target "PlastLibraryTest" in directory ~/plast/plast-library/test/unit

-- Configuring incomplete, errors occurred!

@nylander
Copy link

nylander commented Aug 1, 2019

Hi,
you are probably missing "development files" for cppunit. On a Debian-based system (such as *buntu), you can install them by:

 sudo apt install libcppunit-dev

Another option (no extra installations), is to disable the unit testing by commenting lines 98--99 in the file plast-library/CMakeLists.txt, and then build.

/Johan

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

1 participant