File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -463,6 +463,10 @@ message(STATUS " ")
463
463
message (STATUS "Language bindings:" )
464
464
message (STATUS "python3 bindings: ${ENABLE_PYTHON3} " )
465
465
message (STATUS "perl bindings: ${ENABLE_PERL} " )
466
+ message (STATUS "perl vendorlib: ${PERL_VENDORLIB} " )
467
+ message (STATUS "perl vendorarch: ${PERL_VENDORARCH} " )
468
+ message (STATUS "perl privlib: ${PERL_PRIVLIB} " )
469
+ message (STATUS "perl archlib: ${PERL_ARCHLIB} " )
466
470
message (STATUS " " )
467
471
468
472
message (STATUS "Utilities:" )
Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ include(FindPerlLibs)
3
3
4
4
string (SUBSTRING "${PERL_VERSION_STRING} " 0 4 PERL_VERSION_MINOR )
5
5
6
+ # process cmake vendor paths to respect install prefix, use as Linux defaults below
7
+ STRING (REGEX REPLACE "^/usr/" "${CMAKE_INSTALL_PREFIX} /" PERL_VENDORARCH "${PERL_VENDORARCH} " )
8
+ STRING (REGEX REPLACE "^/usr/" "${CMAKE_INSTALL_PREFIX} /" PERL_VENDORLIB "${PERL_VENDORLIB} " )
9
+ message (STATUS "perl install libdir: ${PERL_VENDORARCH} " )
10
+ message (STATUS "perl install archdir: ${PERL_VENDORLIB} " )
11
+
6
12
set (CMAKE_SWIG_FLAGS "-module" "openscap_pm" )
7
13
if (${CMAKE_VERSION} VERSION_LESS "3.8.0" )
8
14
swig_add_module (openscap_pm perl5 ../openscap.i )
@@ -22,7 +28,7 @@ if (APPLE OR (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD"))
22
28
DESTINATION ${CMAKE_INSTALL_DATADIR} /perl5/vendor_perl )
23
29
else ()
24
30
install (TARGETS ${SWIG_MODULE_openscap_pm_REAL_NAME}
25
- DESTINATION ${CMAKE_INSTALL_LIBDIR} /perl5/${PERL_VERSION_MINOR } )
31
+ DESTINATION ${PERL_VENDORARCH } )
26
32
install (PROGRAMS ${CMAKE_CURRENT_BINARY_DIR} /openscap_pm.pm
27
- DESTINATION ${CMAKE_INSTALL_LIBDIR} /perl5/vendor_perl/${PERL_VERSION_MINOR } )
33
+ DESTINATION ${PERL_VENDORLIB } )
28
34
endif ()
You can’t perform that action at this time.
0 commit comments