summaryrefslogtreecommitdiffstats
path: root/Help/guide/tutorial/Complete
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-06-18 13:40:38 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-06-18 13:41:31 (GMT)
commit3252bc447636b2345485704d646ce8739db12dfa (patch)
tree08eddf63540cd05ddab4f99d1b89684685ca158d /Help/guide/tutorial/Complete
parentd7541e80ed085811fc6180a124adfb5fe6fac519 (diff)
parent0fdfd6bf37146e1b09e410ff5f729f9ea8d3ac1a (diff)
downloadCMake-3252bc447636b2345485704d646ce8739db12dfa.zip
CMake-3252bc447636b2345485704d646ce8739db12dfa.tar.gz
CMake-3252bc447636b2345485704d646ce8739db12dfa.tar.bz2
Merge topic 'tutorial_install_when_built_static'
0fdfd6bf37 Tutorial: Install correctly when built statically Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4906
Diffstat (limited to 'Help/guide/tutorial/Complete')
-rw-r--r--Help/guide/tutorial/Complete/MathFunctions/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/Help/guide/tutorial/Complete/MathFunctions/CMakeLists.txt b/Help/guide/tutorial/Complete/MathFunctions/CMakeLists.txt
index c911625..a47d5e0 100644
--- a/Help/guide/tutorial/Complete/MathFunctions/CMakeLists.txt
+++ b/Help/guide/tutorial/Complete/MathFunctions/CMakeLists.txt
@@ -57,7 +57,11 @@ set_property(TARGET MathFunctions PROPERTY VERSION "1.0.0")
set_property(TARGET MathFunctions PROPERTY SOVERSION "1")
# install rules
-install(TARGETS MathFunctions tutorial_compiler_flags
+set(installable_libs MathFunctions tutorial_compiler_flags)
+if(TARGET SqrtLibrary)
+ list(APPEND installable_libs SqrtLibrary)
+endif()
+install(TARGETS ${installable_libs}
DESTINATION lib
EXPORT MathFunctionsTargets)
install(FILES MathFunctions.h DESTINATION include)