CMake improvements (#369)

* Silence CMake warning by updating minimum versions.

* Generate files to build directory, not source directory
This commit is contained in:
Ryan A. Pavlik 2022-04-23 13:54:05 -05:00 committed by GitHub
parent 61b4eaa64e
commit 454939cdf8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 6 deletions

View file

@ -1,4 +1,6 @@
# Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE.
include_directories(${CMAKE_CURRENT_BINARY_DIR})
LIST(APPEND LIBS ${EVENT_LIB})
IF(MSVC)
@ -109,4 +111,4 @@ ELSE()
CHECK_INCLUDE_FILES(regex.h HAVE_REGEX)
ENDIF()
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/test_config.h.in ${CMAKE_CURRENT_SOURCE_DIR}/test_config.h)
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/test_config.h.in ${CMAKE_CURRENT_BINARY_DIR}/test_config.h)