mirror of
https://gitea.invidious.io/iv-org/litespeed-quic.git
synced 2024-08-15 00:53:43 +00:00
Fix getopt.h error when not needed
This commit is contained in:
parent
f86548d7c9
commit
18d0993638
1 changed files with 2 additions and 2 deletions
|
@ -231,8 +231,8 @@ IF(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" OR CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
|||
link_directories( /usr/local/lib )
|
||||
ENDIF()
|
||||
|
||||
IF (CMAKE_SYSTEM_NAME STREQUAL Windows)
|
||||
FIND_PATH(GETOPT_INCLUDE_DIR NAMES getopt.h AND LSQUIC_TESTS AND LSQUIC_BIN)
|
||||
IF (CMAKE_SYSTEM_NAME STREQUAL Windows AND LSQUIC_TESTS AND LSQUIC_BIN)
|
||||
FIND_PATH(GETOPT_INCLUDE_DIR NAMES getopt.h)
|
||||
IF (GETOPT_INCLUDE_DIR)
|
||||
INCLUDE_DIRECTORIES(${GETOPT_INCLUDE_DIR})
|
||||
ELSE()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue