Guest User

Untitled

a guest
May 23rd, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. cmake_minimum_required(VERSION 2.8)
  2.  
  3. set(VARIABLE "value")
  4.  
  5. add_subdirectory(top_directory/vars)
  6.  
  7. me@host:/tmp>cmake .
  8. -- The C compiler identification is unknown
  9. -- The CXX compiler identification is GNU 7.3.1
  10. -- Check for working C compiler: /usr/bin/g++
  11. -- Check for working C compiler: /usr/bin/g++ -- broken
  12. CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:52 (message):
  13. The C compiler
  14.  
  15. "/usr/bin/g++"
  16.  
  17. is not able to compile a simple test program.
  18.  
  19. It fails with the following output:
  20.  
  21. Change Dir: /tmp/CMakeFiles/CMakeTmp
  22.  
  23. Run Build Command:"/usr/bin/gmake" "cmTC_607e9/fast"
  24. /usr/bin/gmake -f CMakeFiles/cmTC_607e9.dir/build.make CMakeFiles/cmTC_607e9.dir/build
  25. gmake[1]: Entering directory '/tmp/CMakeFiles/CMakeTmp'
  26. Building C object CMakeFiles/cmTC_607e9.dir/testCCompiler.c.o
  27. /usr/bin/g++ -o CMakeFiles/cmTC_607e9.dir/testCCompiler.c.o -c /tmp/CMakeFiles/CMakeTmp/testCCompiler.c
  28. /tmp/CMakeFiles/CMakeTmp/testCCompiler.c:2:3: error: #error "The CMAKE_C_COMPILER is set to a C++ compiler"
  29. # error "The CMAKE_C_COMPILER is set to a C++ compiler"
  30. ^~~~~
  31. gmake[1]: *** [CMakeFiles/cmTC_607e9.dir/build.make:66: CMakeFiles/cmTC_607e9.dir/testCCompiler.c.o] Error 1
  32. gmake[1]: Leaving directory '/tmp/CMakeFiles/CMakeTmp'
  33. gmake: *** [Makefile:126: cmTC_607e9/fast] Error 2
  34.  
  35.  
  36.  
  37.  
  38. CMake will not be able to correctly generate this project.
  39. Call Stack (most recent call first):
  40. CMakeLists.txt
  41.  
  42.  
  43. -- Configuring incomplete, errors occurred!
  44. See also "/tmp/CMakeFiles/CMakeOutput.log".
  45. See also "/tmp/CMakeFiles/CMakeError.log".
  46.  
  47. cmake --version
  48. cmake version 3.11.1
  49. CMake suite maintained and supported by Kitware (kitware.com/cmake).
  50.  
  51. gcc --version
  52. gcc (SUSE Linux) 7.3.1 20180323 [gcc-7-branch revision 258812]
  53. Copyright (C) 2017 Free Software Foundation, Inc.
  54. This is free software; see the source for copying conditions. There is NO
  55. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Add Comment
Please, Sign In to add comment