forked from github/server
use pdcurses from vcpkg if available
This commit is contained in:
parent
ebc8c3f1d2
commit
ba3b9ae6d3
|
@ -11,7 +11,7 @@ if (MSVC)
|
|||
find_package (PDCurses)
|
||||
set (CURSES_FOUND ${PDCURSES_FOUND})
|
||||
set (CURSES_LIBRARIES ${PDCURSES_LIBRARY})
|
||||
set (CURSES_INCLUDE_DIR ${PDCURSES_INCLUDE_DIR})
|
||||
set (CURSES_INCLUDE_DIRS ${PDCURSES_INCLUDE_DIR})
|
||||
set (HAVE_STRDUP 0)
|
||||
set (HAVE_STRLCAT 0)
|
||||
set (HAVE_LIBBSD 0)
|
||||
|
@ -20,7 +20,6 @@ set (HAVE_EXECINFO_H 0)
|
|||
include (MSVC)
|
||||
else (MSVC)
|
||||
|
||||
find_package (Curses)
|
||||
include (CheckIncludeFile)
|
||||
CHECK_INCLUDE_FILE(signal.h HAVE_SIGNAL_H)
|
||||
CHECK_INCLUDE_FILE(execinfo.h HAVE_EXECINFO_H)
|
||||
|
@ -36,6 +35,10 @@ CHECK_FUNCTION_EXISTS(strlcat HAVE_STRLCAT)
|
|||
endif (HAVE_LIBBSD)
|
||||
endif (MSVC)
|
||||
|
||||
if (NOT CURSES_FOUND)
|
||||
find_package (Curses)
|
||||
endif (NOT CURSES_FOUND)
|
||||
|
||||
find_package (SQLite3 REQUIRED)
|
||||
|
||||
find_package(EXPAT REQUIRED)
|
||||
|
|
|
@ -8,7 +8,7 @@ REM CD ..
|
|||
REM SET ERESSEA=%CD%
|
||||
REM CD %SRCDIR%
|
||||
|
||||
SET CMAKE_MODULES="%CMAKE_ROOT%\share\cmake-3.19\Modules;%SRCDIR%\cmake\Modules"
|
||||
SET CMAKE_MODULES="%CMAKE_ROOT%\share\cmake-3.19\Modules"
|
||||
|
||||
IF exist build-vs%VSVERSION% goto HAVEDIR
|
||||
mkdir build-vs%VSVERSION%
|
||||
|
|
Loading…
Reference in New Issue