File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 11# Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE.
2- cmake_minimum_required (VERSION 2.8 )
2+ cmake_minimum_required (VERSION 3.0...3.23 )
33
44
55PROJECT (lsquic C)
Original file line number Diff line number Diff line change 11# Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE.
2+
3+ include_directories (${CMAKE_CURRENT_BINARY_DIR} )
24LIST (APPEND LIBS ${EVENT_LIB} )
35
46IF (MSVC )
@@ -109,4 +111,4 @@ ELSE()
109111CHECK_INCLUDE_FILES(regex .h HAVE_REGEX)
110112ENDIF ()
111113
112- CONFIGURE_FILE (${CMAKE_CURRENT_SOURCE_DIR} /test_config.h.in ${CMAKE_CURRENT_SOURCE_DIR } /test_config.h)
114+ CONFIGURE_FILE (${CMAKE_CURRENT_SOURCE_DIR} /test_config.h.in ${CMAKE_CURRENT_BINARY_DIR } /test_config.h)
Original file line number Diff line number Diff line change 11# Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE.
2- cmake_minimum_required (VERSION 2.8 )
2+ cmake_minimum_required (VERSION 3.0...3.23 )
33
44add_subdirectory (liblsquic)
Original file line number Diff line number Diff line change @@ -107,12 +107,12 @@ ELSE()
107107ENDIF ()
108108
109109ADD_CUSTOM_COMMAND (
110- OUTPUT ${CMAKE_CURRENT_SOURCE_DIR } /lsquic_versions_to_string.c
110+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR } /lsquic_versions_to_string.c
111111 COMMAND ${PERL}
112- ARGS ${CMAKE_CURRENT_SOURCE_DIR} /gen-verstrs.pl ${CMAKE_CURRENT_SOURCE_DIR} /../../include /lsquic.h ${CMAKE_CURRENT_SOURCE_DIR } /lsquic_versions_to_string.c
112+ ARGS ${CMAKE_CURRENT_SOURCE_DIR} /gen-verstrs.pl ${CMAKE_CURRENT_SOURCE_DIR} /../../include /lsquic.h ${CMAKE_CURRENT_BINARY_DIR } /lsquic_versions_to_string.c
113113 DEPENDS ./gen-verstrs.pl ${CMAKE_CURRENT_SOURCE_DIR} /../../include /lsquic.h
114114)
115- SET (lsquic_STAT_SRCS ${lsquic_STAT_SRCS} lsquic_versions_to_string.c)
115+ SET (lsquic_STAT_SRCS ${lsquic_STAT_SRCS} ${CMAKE_CURRENT_BINARY_DIR} / lsquic_versions_to_string.c)
116116SET (lsquic_STAT_SRCS ${lsquic_STAT_SRCS} ls-sfparser.c)
117117
118118SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DXXH_HEADER_NAME=\\\" lsquic_xxhash.h\\\" " )
You can’t perform that action at this time.
0 commit comments