Install (new) asn1c under /opt/ to allow parallel install

This commit is contained in:
Robert Schmidt
2023-06-02 10:54:29 +02:00
parent fcd00755ea
commit cb2c8731a7
2 changed files with 9 additions and 2 deletions
+8 -1
View File
@@ -49,8 +49,15 @@ include_directories(${CRYPTO_INCLUDE_DIRS})
# Check if asn1c is installed, and check if it supports all options we need
# a user can provide ASN1C_EXEC to override an asn1c to use (e.g., parallel
# installation)
find_program(ASN1C_EXEC_PATH asn1c)
find_program(ASN1C_EXEC_PATH asn1c HINTS /opt/asn1c/bin)
set(ASN1C_EXEC ${ASN1C_EXEC_PATH} CACHE FILEPATH "path to asn1c executable")
if(NOT ASN1C_EXEC)
message(FATAL_ERROR "No asn1c found!
You might want to re-run ./build_oai -I
Or provide a path to asn1c using
./build_oai ... --cmake-opt -DASN1C_EXEC=/path/to/asn1c
")
endif()
check_option(${ASN1C_EXEC} -gen-APER ASN1C_EXEC)
check_option(${ASN1C_EXEC} -no-gen-UPER ASN1C_EXEC)
check_option(${ASN1C_EXEC} -no-gen-JER ASN1C_EXEC)
+1 -1
View File
@@ -684,7 +684,7 @@ install_asn1c_from_source(){
cd /tmp/asn1c
git checkout vlm_master
autoreconf -iv
./configure
./configure --prefix /opt/asn1c/
make -j`nproc`
$SUDO make install
cd -