Skip to content

Commit

Permalink
fix: Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Yushu2606 committed Oct 19, 2023
1 parent 9ffd123 commit ec8061a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
cmake_minimum_required(VERSION 3.26)

set(CMAKE_C_COMPILER clang)
set(CMAKE_C_STANDARD 23)
set(CMAKE_C_COMPILER clang)

project(preload C)

include_directories("include")
include_directories(include)

link_directories("lib"
"lib/nethost")
link_directories(lib/nethost)

add_library(preload SHARED src/main.c src/dotnet.c)

target_link_libraries(preload "libnethost.a")
target_link_libraries(preload libnethost.a libstdc++.so)

0 comments on commit ec8061a

Please sign in to comment.