Просмотр исходного кода

Specify language in the wasi socket ext project (#3183)

If the language is not specified, CMake will try to find C++ compiler, even
though it is not really needed in that case (as the project is only written in C).
Marcin Kolny 1 год назад
Родитель
Сommit
bc4f8ab0a5
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      core/iwasm/libraries/lib-socket/lib_socket_wasi.cmake

+ 1 - 1
core/iwasm/libraries/lib-socket/lib_socket_wasi.cmake

@@ -3,7 +3,7 @@
 
 cmake_minimum_required (VERSION 2.8...3.16)
 
-project(socket_wasi_ext)
+project(socket_wasi_ext LANGUAGES C)
 
 add_library(${PROJECT_NAME} STATIC ${CMAKE_CURRENT_LIST_DIR}/src/wasi/wasi_socket_ext.c)
 target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc/)