Explorar el Código

Disable CXX in CMake project

Bastien hace 6 años
padre
commit
398f114eba
Se han modificado 3 ficheros con 4 adiciones y 3 borrados
  1. 2 1
      CMakeLists.txt
  2. 1 1
      examples/opengl/CMakeLists.txt
  3. 1 1
      examples/simple/CMakeLists.txt

+ 2 - 1
CMakeLists.txt

@@ -1,6 +1,7 @@
 cmake_minimum_required(VERSION 3.1)
 
-project(openhmd C CXX)
+project(openhmd C)
+
 set(CMAKE_C_STANDARD 99)
 set(CMAKE_POSITION_INDEPENDENT_CODE ON)
 

+ 1 - 1
examples/opengl/CMakeLists.txt

@@ -1,4 +1,4 @@
-project (openglexample)
+project (openglexample C)
 include_directories(${CMAKE_BINARY_DIR}/include ${SDL2_INCLUDE_DIR} ${GLEW_INCLUDE_DIRS} ${OPENGL_INCLUDE_DIR})
 link_directories(${CMAKE_BINARY_DIR})
 add_executable(openglexample gl.c main.c)

+ 1 - 1
examples/simple/CMakeLists.txt

@@ -1,4 +1,4 @@
-project (simple)
+project (simple C)
 include_directories(${CMAKE_BINARY_DIR}/include)
 link_directories(${CMAKE_BINARY_DIR})
 add_executable(simple simple.c)