Skip to content

Commit

Permalink
Replacing in-built sio with FetchContent mechanism (full build; can b…
Browse files Browse the repository at this point in the history
…e stripped down).
  • Loading branch information
arummler authored and tmadlener committed Dec 6, 2023
1 parent 2520350 commit 9cf4c16
Show file tree
Hide file tree
Showing 20 changed files with 10 additions and 3,586 deletions.
17 changes: 9 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,15 @@ FIND_PACKAGE( SIO QUIET )

IF( NOT SIO_FOUND )
MESSAGE( STATUS "SIO not found on your system. Using builtin sio" )
ADD_SUBDIRECTORY( sio )
include(FetchContent)
FetchContent_Declare(sio_extern
GIT_REPOSITORY https://github.com/iLCSoft/SIO.git
GIT_TAG master
GIT_SHALLOW 1
# FIND_PACKAGE_ARGS
)

FetchContent_MakeAvailable(sio_extern)
ENDIF()

MESSAGE( STATUS "Using SIO (${SIO_VERSION})" )
Expand Down Expand Up @@ -320,10 +328,3 @@ install(EXPORT ${PROJECT_NAME}Targets
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}/"
)

IF( NOT SIO_FOUND )
install(EXPORT SIOTargets
NAMESPACE SIO::
FILE "SIOTargets.cmake"
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/SIO/"
)
ENDIF()
50 changes: 0 additions & 50 deletions sio/CMakeLists.txt

This file was deleted.

Loading

0 comments on commit 9cf4c16

Please sign in to comment.