Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Main Repositories
otb
Commits
e02e87f0
Commit
e02e87f0
authored
Aug 02, 2017
by
Rashad Kanavath
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update install rule for windows symlinks
parent
584d3654
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
10 deletions
+16
-10
Packaging/install_rule.cmake
Packaging/install_rule.cmake
+16
-10
No files found.
Packaging/install_rule.cmake
View file @
e02e87f0
...
...
@@ -35,8 +35,8 @@ function(install_rule src_file)
continue
()
elseif
(
"
${
sfile_ABS_LOWER
}
"
MATCHES
"
\\
.lnk$"
)
#we don't install symlink on windows. issue a warning
message
(
WARNING
"
${
sfile_ABS
}
is a symbolic link and this will be excluded from package
"
)
continue
(
)
set
(
install_type
"symlink
"
)
set
(
install_dir
)
elseif
(
"
${
sfile_ABS_LOWER
}
"
MATCHES
"(
\\
.a)$"
)
set
(
install_type FILES
)
set
(
install_dir lib
)
...
...
@@ -54,22 +54,28 @@ function(install_rule src_file)
set
(
install_type
)
set
(
install_dir
)
#message("sfile_ABS=${sfile_ABS}")
#this is whole other story
detect_using_file_command
(
${
sfile_ABS
}
install_type install_dir
)
endif
(
UNIX
)
endif
()
if
(
install_type STREQUAL
"symlink"
)
#we don't install symlink on windows. issue a warning
message
(
WARNING
"
${
sfile_ABS
}
is a symbolic link and this will be excluded from package"
)
return
()
endif
()
if
(
NOT install_type OR NOT install_type
)
message
(
FATAL_ERROR
"
install_type OR install_dir is empty
\n
install_type=
${
install_dir
}
\n
install_dir=
${
install_dir
}
"
)
message
(
FATAL_ERROR
"
sfile_ABS=
${
sfile_ABS
}
.
\n
install_type=
${
install_dir
}
\n
install_dir=
${
install_dir
}
"
)
return
()
endif
()
install
(
${
install_type
}
"
${
sfile
}
"
DESTINATION
"
${
PKG_STAGE_DIR
}
/
${
install_dir
}
"
)
if
(
NOT install_type STREQUAL
"symlink"
)
install
(
${
install_type
}
"
${
sfile
}
"
DESTINATION
"
${
PKG_STAGE_DIR
}
/
${
install_dir
}
"
)
endif
()
endforeach
()
endfunction
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment