cmake: fix up build

This commit is contained in:
Dmitri Tikhonov 2019-09-18 13:46:12 -04:00
parent e5130c7886
commit 3ff30b2745

View file

@ -92,10 +92,10 @@ ELSE()
ENDIF() ENDIF()
ADD_CUSTOM_COMMAND( ADD_CUSTOM_COMMAND(
OUTPUT ${PROJECT_SOURCE_DIR}/src/liblsquic/lsquic_versions_to_string.c OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/lsquic_versions_to_string.c
COMMAND ${PROJECT_SOURCE_DIR}/src/liblsquic/gen-verstrs COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/gen-verstrs
ARGS ${PROJECT_SOURCE_DIR}/include/lsquic.h ${PROJECT_SOURCE_DIR}/src/liblsquic/lsquic_versions_to_string.c ARGS ${CMAKE_CURRENT_SOURCE_DIR}/../../include/lsquic.h ${CMAKE_CURRENT_SOURCE_DIR}/lsquic_versions_to_string.c
DEPENDS ./gen-verstrs ${PROJECT_SOURCE_DIR}/include/lsquic.h DEPENDS ./gen-verstrs ${CMAKE_CURRENT_SOURCE_DIR}/../../include/lsquic.h
) )
SET(lsquic_STAT_SRCS ${lsquic_STAT_SRCS} lsquic_versions_to_string.c) SET(lsquic_STAT_SRCS ${lsquic_STAT_SRCS} lsquic_versions_to_string.c)