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).
This commit is contained in:
Marcin Kolny 2024-02-28 11:35:00 +00:00 committed by GitHub
parent c949f3d2aa
commit bc4f8ab0a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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/)