diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/test_ports/cmake/portfile.cmake | 8 | ||||
| -rw-r--r-- | scripts/test_ports/cmake/vcpkg.json | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/scripts/test_ports/cmake/portfile.cmake b/scripts/test_ports/cmake/portfile.cmake index b08df8afb..9df7b3f43 100644 --- a/scripts/test_ports/cmake/portfile.cmake +++ b/scripts/test_ports/cmake/portfile.cmake @@ -10,6 +10,10 @@ vcpkg_from_gitlab( HEAD_REF master ) +if(NOT VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_UWP) + set(BUILD_CURSES_DIALOG ON) +endif() + vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH} PREFER_NINJA @@ -26,6 +30,7 @@ vcpkg_configure_cmake( -DCMAKE_USE_SYSTEM_JSONCPP=ON -DCMAKE_USE_SYSTEM_LIBRHASH=OFF # not yet in VCPKG -DCMAKE_USE_SYSTEM_LIBUV=ON + -DBUILD_CursesDialog=${BUILD_CURSES_DIALOG} -DBUILD_QtDialog=ON # Just to test Qt with CMake ) @@ -37,6 +42,9 @@ if(NOT VCPKG_TARGET_IS_OSX) if(VCPKG_TARGET_IS_WINDOWS) list(APPEND _tools cmcldeps) endif() + if(BUILD_CURSES_DIALOG) + list(APPEND _tools ccmake) + endif() vcpkg_copy_tools(TOOL_NAMES ${_tools} AUTO_CLEAN) else() # On OSX everything is within a CMake.app folder diff --git a/scripts/test_ports/cmake/vcpkg.json b/scripts/test_ports/cmake/vcpkg.json index 5ffb7f124..c2c4d9752 100644 --- a/scripts/test_ports/cmake/vcpkg.json +++ b/scripts/test_ports/cmake/vcpkg.json @@ -11,6 +11,10 @@ "libarchive", "liblzma", "libuv", + { + "name": "ncurses", + "platform": "!(windows | uwp)" + }, "nghttp2", "qt5-base", { |
