Skip to content

Commit

Permalink
Partially working main draft
Browse files Browse the repository at this point in the history
  • Loading branch information
mcfriend99 committed Oct 12, 2024
1 parent fefc864 commit 505ee66
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ if(WIN32)

find_package(PThreads4W REQUIRED)
target_link_libraries(libblade PRIVATE PThreads4W::PThreads4W)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-pragmas")
endif()

target_link_libraries(blade PRIVATE libblade)
Expand Down
4 changes: 4 additions & 0 deletions packages/ssl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
endif()

if(WIN32)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-deprecated-declarations")
endif()

add_custom_target(copy-ssl-to-libs ALL
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/ssl ${BLADE_ROOT}/libs/ssl
COMMENT "Exporting ssl source files to libs folder..."
Expand Down

0 comments on commit 505ee66

Please sign in to comment.