"Build Project" is grayed out & "Setting->CMake->Build directory" doesn't work as expected Follow
I have two questions:
- The "Build Project" under "Build" is grayed out while the next two "Build XXX" is enabled.
- "Setting->CMake-> Build directory" doesn't work. The build file isn't generated under the directory specified when i "Reload Cmake Project"
Appreciate any help on these, thanks
Please sign in to leave a comment.
Please do `Tools | CMake | Reset Cache and Reload Project` and show the entire output from the CMake tool window.
Hi, I think it works after going for Tools|CMake|Reset Cache and Reload Project. Now I can change the build directory. However the Build | Build Project is still grayed out. Any ideas? Thanks
Below is the CMake output:
/home/asrock/Downloads/CLion-2021.1.2/clion-2021.1.2/bin/cmake/linux/bin/cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /home/asrock/eclipse-workspace/BST_AIDocCorrect
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for one of the modules 'opencv'
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
[Main] EIGEN3_INCLUDE_DIRS = /usr/include/eigen3
CMake Warning (dev) at /home/asrock/Downloads/CLion-2021.1.2/clion-2021.1.2/bin/cmake/linux/share/cmake-3.19/Modules/FindOpenGL.cmake:293 (message):
Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
available. Run "cmake --help-policy CMP0072" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
FindOpenGL found both a legacy GL library:
and GLVND libraries for OpenGL and GLX:
OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so
-- Found GLUT: /usr/lib/x86_64-linux-gnu/libglut.so
-- Found GLEW: /usr/include (found version "2.0.0")
-- Checking for one of the modules 'glfw3'
-- Configuring done
-- Generating done
-- Build files have been written to: /home/asrock/eclipse-workspace/BST_AIDocCorrect/cmake-build-debug