build: Cmake not finding SQLite3 when python/sqlite is in "non-standard" path
I use a python version that is part of Intel's oneAPI toolkit, which includes sqlite3
$ which sqlite3
/opt/intel/oneapi/intelpython/latest/bin/sqlite3
$ sqlite3 --version
3.38.0 2022-02-22 18:58:40 40fa792d359f84c3b9e9d6623743e1a59826274e221df1bde8f47086968a1bab
The sqlit3.h file is in /opt/intel/oneapi/intelpython/latest/include and libsqlite3 is in /opt/intel/oneapi/intelpython/latest/lib.
When configuring ns-3, ns3/CMake finds python in the non-standard path (/opt/intel/oneapi/intelpython/latest) as you can see below. However, it does not find sqlite3
$ CXX="clang++" ./ns3 configure --build-profile=debug --enable-tests --enable-examples --disable-python
-- The CXX compiler identification is Clang 14.0.0
-- The C compiler identification is Clang 14.0.0
-- Check for working CXX compiler: /opt/intel/oneapi/compiler/latest/linux/bin-llvm/clang++
-- Check for working CXX compiler: /opt/intel/oneapi/compiler/latest/linux/bin-llvm/clang++ -- works
...
-- Proceeding without cmake-format
-- find_external_library: SQLite3 was not found. Missing headers: "sqlite3.h" and missing libraries: "sqlite3".
-- SQLite was not found
-- Harfbuzz is required by GTK3 and was not found.
-- LibXML2 was not found. Continuing without it.
-- LibRT was found.
-- Found Python3: /opt/intel/oneapi/intelpython/latest/bin/python3.9 (found version "3.9.10") found components: Interpreter Development
...
Am I missing/overlooking something?
Edited by Gabriel Arrobo