CMake Error : No externals download dir set - cmake

When I run this command :
cmake ../CCCP/3rdparty -DINSTALL_ROOT=$BUILDROOT/i -DEXTERNALS_DOWNLOAD_DIR=$BUILDROOT/d -DCMAKE_INSTALL_PREFIX=BUILDROOT/i
I get this error :
CMake Error at CMakeLists.txt:28 (message):
No externals download dir set. Use -DEXTERNALS_DOWNLOAD_DIR
-- Configuring incomplete, errors occurred!
See also "/Users/Apple/BUILDROOT/b/CMakeFiles/CMakeOutput.log".
can anyone help me please ?

Related

cmake echoes an empty CMAKE_CURRENT_SOURCE_DIR

I am using cmake with Clion which has version:
> /snap/clion/189/bin/cmake/linux/bin/cmake --version
cmake version 3.22.3
CMake suite maintained and supported by Kitware (kitware.com/cmake).
When configuring my cmake project with this version I get following error:
CMake Error at test/CMakeLists.txt:6 (find_program):
Could not find TEST_WITH_DATA using the following names:
-- Configuring incomplete, errors occurred!
Line 6:
find_program(TEST_WITH_DATA REQUIRED "test_with_data.sh" PATHS "${CMAKE_CURRENT_SOURCE_DIR}")
I really cannot see what the problem is here?
with cmake version 3.16.3 it does work!

I get the error of the CXX compiler identification is unknown

I get the following error when I try to use cmake to compile a source code:
$ sudo cmake -DUSE_QT5=1 -DCMAKE_INSTALL_PREFIX=/home/linux/myYade ../trunk
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:35 (project):
No CMAKE_CXX_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-- Configuring incomplete, errors occurred!
See also "/home/linux/myYade/trunk/CMakeFiles/CMakeOutput.log".
See also "/home/linux/myYade/trunk/CMakeFiles/CMakeError.log".
Any help to get this resolved?

LightGBM Installation issue on cmake

I would like to download LightGbm and i followed this website for doing it. But suddenly stopped with an error. Please post a solution.
Thankshttps://lightgbm.readthedocs.io/en/latest/Installation-Guide.html#macos
Error:
cmake ..
CMake Error at /usr/local/Cellar/cmake/3.13.0/share/cmake/Modules/CMakeDetermineCCompiler.cmake:48 (message):
Could not find compiler set in environment variable CC:
gcc-7.
Call Stack (most recent call first):
CMakeLists.txt:7 (PROJECT)
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "/Users/kj/LightGBM/build/CMakeFiles/CMakeOutput.log".
Your environment variable CC is set to gcc-7 but this compiler can't be access with your $PATH variable.
Try to write gcc-7 in a terminal you should get a Command not found error.

Cmake "Could not create symbolic link"

Hello i am trying to build a project with cmake but i get following error
CMake Error at tests/CMakeLists.txt:116 (message):
Could not create symbolic link for:
C:/CePlusPlus/ssl_normal/tests/data_files --> Invalid switch -
"CePlusPlus".
Configuring incomplete, errors occurred!
See also "C:/CePlusPlus/ssl_normal-build/CMakeFiles/CMakeOutput.log".
Any suggestions?

Unknown CMake command "CHECK_INCLUDE_FILE_CXX"

I tried running cmake to generate the build tools for linux on vmime with the latest source from git hub, it generated the following errors. Thoughts??
vmime$ /usr/local/bin/cmake -G "Unix Makefiles"
CMake Error at CMakeLists.txt:20 (INCLUDE):
include could not find load file:
CheckIncludeFileCxx
-- Build type: Debug
CMake Error at CMakeLists.txt:452 (CHECK_INCLUDE_FILE_CXX):
Unknown CMake command "CHECK_INCLUDE_FILE_CXX".
-- Configuring incomplete, errors occurred!
In your CMakeLists.txt at line 20, you have
include(CheckIncludeFileCxx)
This should be
include(CheckIncludeFileCXX)
^^--- Uppercase
Once CheckIncludeFileCXX is properly included, the error on line 452 should also disappear, since the file defines the function CHECK_INCLUDE_FILE_CXX.
It has probably only been tested on Windows; since Windows filenames are case-insensitive this would have worked.