Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. cd samples
  2. mkdir build
  3. cd build
  4. cmake .. -G "Visual Studio 14 2015 Win64" -DCMAKE_PREFIX_PATH=C:/Qt/5.6/msvc2013_64/lib/cmake
  5.  
  6. $ cmake .. -G "Visual Studio 14 2015 Win64" -DCMAKE_PREFIX_PATH=C:/Qt/5.6/msvc20 13_64/lib/cmake
  7. -- The C compiler identification is MSVC 19.0.24215.1
  8. -- The CXX compiler identification is MSVC 19.0.24215.1
  9. -- Check for working C compiler using: Visual Studio 14 2015 Win64
  10. -- Check for working C compiler using: Visual Studio 14 2015 Win64 -- works
  11. -- Detecting C compiler ABI info
  12. -- Detecting C compiler ABI info - done
  13. -- Check for working CXX compiler using: Visual Studio 14 2015 Win64
  14. -- Check for working CXX compiler using: Visual Studio 14 2015 Win64 -- works
  15. -- Detecting CXX compiler ABI info
  16. -- Detecting CXX compiler ABI info - done
  17. -- Detecting CXX compile features
  18. -- Detecting CXX compile features - done
  19. -- Compilation set for 64bits architectures.
  20. CMake Warning at CMakeLists.txt:40 (message):
  21. SDL x64 runtime binaries not provided on Windows.
  22.  
  23.  
  24. CMake Error at CMakeLists.txt:98 (message):
  25. Unsupported compiler.
  26.  
  27.  
  28. -- Configuring incomplete, errors occurred!
  29. See also "C:/Users/GBarbieri/Documents/Visual Studio 2015/Projects/openvr/sample s/build/CMakeFiles/CMakeOutput.log".
  30.  
  31. if( (${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
  32. OR (${CMAKE_CXX_COMPILER_ID} MATCHES "Clang"))
  33. # Better to use the prebuilt GNU preprocessor define __GNUC__,
  34. # kept for legacy reason with the sample code.
  35. add_definitions(-DGNUC)
  36.  
  37. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -include ${SHARED_SRC_DIR}/compat.h")
  38. set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -Wextra -pedantic -g")
  39. set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O2")
  40.  
  41. # Handles x86 compilation support on x64 arch.
  42. if(${PLATFORM} MATCHES 32)
  43. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32")
  44. set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -m32")
  45. endif()
  46. elseif(${CMAKE_CXX_COMPILER_ID} MATCHES "MSVC")
  47. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Za")
  48. set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /w2 /DEBUG")
  49. set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MP /INCREMENTAL:NO")
  50. else()
  51. message(FATAL_ERROR "Unsupported compiler. ") // line 98
  52. endif()
  53.  
  54. message("${CMAKE_CXX_COMPILER_ID}")
  55. if(${CMAKE_CXX_COMPILER_ID} MATCHES "MSVC")
  56. message("match")
  57. else()
  58. message("!match")
  59. endif()
  60.  
  61. MSVC
  62. !match
  63. CMake Error at CMakeLists.txt:104 (message):
  64. Unsupported compiler.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement