File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed 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
+
4
6
set (CMAKE_SWIG_FLAGS "-module" "openscap_pm" )
5
7
if (${CMAKE_VERSION} VERSION_LESS "3.8.0" )
6
8
swig_add_module (openscap_pm perl5 ../openscap.i )
@@ -20,7 +22,7 @@ if (APPLE OR (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD"))
20
22
DESTINATION ${CMAKE_INSTALL_DATADIR} /perl5/vendor_perl )
21
23
else ()
22
24
install (TARGETS ${SWIG_MODULE_openscap_pm_REAL_NAME}
23
- DESTINATION ${PERL_VENDORLIB } )
25
+ DESTINATION ${CMAKE_INSTALL_LIBDIR} /perl5/${PERL_VERSION_MINOR } )
24
26
install (PROGRAMS ${CMAKE_CURRENT_BINARY_DIR} /openscap_pm.pm
25
- DESTINATION ${PERL_VENDORARCH } )
27
+ DESTINATION ${CMAKE_INSTALL_LIBDIR} /perl5/vendor_perl/${PERL_VERSION_MINOR } )
26
28
endif ()
You can’t perform that action at this time.
0 commit comments