Short Version:
I am using CMake and Ninja with an external dependency in a git repo that requires a password prompt. (The source code must be secured).
When building using Makefiles I can use the password prompt and everything continues.
With Ninja it locks up at:
-- Build files have been written to:
/path/to/project/hello_cpp/build/sqlite3-download
[1/9] Creating directories for 'sqlite3-download'
Enter PEM pass phrase:
My Question:
How do I get Ninja to allow me to enter the password?
- ninja 1.7.2
- cmake 3.8.2
- git 2.13.2
Long Version
The following are the steps I have taken and the context of the question.
I have created SQLite3 CMake Library as a learning exercise in how to author a CMake library.
I have also created Hello CPP as a learning exercise for building a C++ project cross platform and configuring a project template.
I managed to get external dependencies working via Craig Scott's DownloadProject
CMake Module.
include(DownloadProject)
download_project(PROJ sqlite3
GIT_REPOSITORY "https://github.com/dexata/sqlite3-cmake.git"
GIT_TAG master
)
add_subdirectory(${sqlite3_SOURCE_DIR} ${sqlite3_BINARY_DIR})
target_link_libraries(helloworld_lib_target sqlite3)
get_property(sqlite3_inc_dir TARGET sqlite3 PROPERTY INCLUDE_DIRECTORIES)
I have also authored the following answer to How can I make git accept a self signed certificate?
So I am pretty intimately aware of the security features of self hosted git. We have the current constraint that our only connection is via https to access our git instance. Even if we allowed ssh access we still have the security policy that the private key have a password and thus Ninja still needs to allow interactive prompts.
Like I said above, it works with Makefiles but I am trying to get it working for Ninja
.
Your help is appreciated advance.