Skip to content

Commit

Permalink
make it so libuv is statically linked
Browse files Browse the repository at this point in the history
  • Loading branch information
David committed Jan 17, 2015
1 parent 323e87e commit 4b12a07
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,10 @@ project(ftc C)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c99")
set(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} -std=c99")


set(SOURCE_FILES main.c)
add_executable(ftc ${SOURCE_FILES})


find_package(LibUV REQUIRED)
#include_directories(${LIBUV_INCLUDE_DIRS})
target_link_libraries(ftc libuv)
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc")
target_link_libraries(ftc libuv.a libws2_32.a libpsapi.a libiphlpapi.a)# -lshell32)

0 comments on commit 4b12a07

Please sign in to comment.