File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,11 @@ include(FindPerlLibs)
4
4
string (SUBSTRING "${PERL_VERSION_STRING} " 0 4 PERL_VERSION_MINOR )
5
5
6
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} " )
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
+
9
12
message (STATUS "perl install libdir: ${PERL_VENDORARCH} " )
10
13
message (STATUS "perl install archdir: ${PERL_VENDORLIB} " )
11
14
You can’t perform that action at this time.
0 commit comments