File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Expand file tree Collapse file tree 2 files changed +17
-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 1
1
include (UseSWIG )
2
2
include (FindPerlLibs )
3
3
4
+ string (SUBSTRING "${PERL_VERSION_STRING} " 0 4 PERL_VERSION_MINOR )
5
+
6
+ # process cmake vendor paths to respect install prefix, use as Linux defaults below
7
+ if (NOT CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT )
8
+ STRING (REGEX REPLACE "^/usr/" "${CMAKE_INSTALL_PREFIX} /" PERL_VENDORARCH "${PERL_VENDORARCH} " )
9
+ STRING (REGEX REPLACE "^/usr/" "${CMAKE_INSTALL_PREFIX} /" PERL_VENDORLIB "${PERL_VENDORLIB} " )
10
+ endif ()
11
+
12
+ message (STATUS "perl install libdir: ${PERL_VENDORARCH} " )
13
+ message (STATUS "perl install archdir: ${PERL_VENDORLIB} " )
14
+
4
15
set (CMAKE_SWIG_FLAGS "-module" "openscap_pm" )
5
16
if (${CMAKE_VERSION} VERSION_LESS "3.8.0" )
6
17
swig_add_module (openscap_pm perl5 ../openscap.i )
@@ -20,7 +31,7 @@ if (APPLE OR (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD"))
20
31
DESTINATION ${CMAKE_INSTALL_DATADIR} /perl5/vendor_perl )
21
32
else ()
22
33
install (TARGETS ${SWIG_MODULE_openscap_pm_REAL_NAME}
23
- DESTINATION ${PERL_VENDORLIB } )
34
+ DESTINATION ${PERL_VENDORARCH } )
24
35
install (PROGRAMS ${CMAKE_CURRENT_BINARY_DIR} /openscap_pm.pm
25
- DESTINATION ${PERL_VENDORARCH } )
36
+ DESTINATION ${PERL_VENDORLIB } )
26
37
endif ()
You can’t perform that action at this time.
0 commit comments