Explorar o código

mark cmake project explicitly as C++ (see #309)

Michele Caini %!s(int64=6) %!d(string=hai) anos
pai
achega
ad7ee0b716
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      CMakeLists.txt

+ 5 - 1
CMakeLists.txt

@@ -16,7 +16,7 @@ endif()
 # Project configuration
 #
 
-project(EnTT VERSION 3.2.0)
+project(EnTT VERSION 3.2.0 LANGUAGES CXX)
 
 include(GNUInstallDirs)
 
@@ -191,6 +191,10 @@ if(BUILD_TESTING)
     option(BUILD_MOD "Build mod example." OFF)
     option(BUILD_SNAPSHOT "Build snapshot example." OFF)
 
+    if(BUILD_MOD)
+        enable_language(C)
+    endif()
+
     enable_testing()
     add_subdirectory(test)
 endif()