mirror of
https://gitea.invidious.io/iv-org/litespeed-quic.git
synced 2024-08-15 00:53:43 +00:00
LSQUIC_TESTS=OFF, LSQUIC_BIN=OFF : Remove getopt.h error : Build will succeed. (#420)
* link fix when using lsquic in a cpp project * Update CMakeLists.txt Co-authored-by: MBellahcene <moussa.bellahcene@4d.com>
This commit is contained in:
parent
a4aac39013
commit
d5602cd335
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ IF(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" OR CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
|||
ENDIF()
|
||||
|
||||
IF (CMAKE_SYSTEM_NAME STREQUAL Windows)
|
||||
FIND_PATH(GETOPT_INCLUDE_DIR NAMES getopt.h)
|
||||
FIND_PATH(GETOPT_INCLUDE_DIR NAMES getopt.h AND LSQUIC_TESTS AND LSQUIC_BIN)
|
||||
IF (GETOPT_INCLUDE_DIR)
|
||||
INCLUDE_DIRECTORIES(${GETOPT_INCLUDE_DIR})
|
||||
ELSE()
|
||||
|
|
Loading…
Reference in a new issue