diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2020-06-16 19:38:57 (GMT) |
---|---|---|
committer | Robert Maynard <robert.maynard@kitware.com> | 2020-06-16 19:38:57 (GMT) |
commit | 0fdfd6bf37146e1b09e410ff5f729f9ea8d3ac1a (patch) | |
tree | 476eb80eba83856bf332e7cf9c325376bbab16b8 /Help/guide/tutorial/Step10 | |
parent | f2c1debe403c4e9929a6dc2b1b6f63a7f6b052cc (diff) | |
download | CMake-0fdfd6bf37146e1b09e410ff5f729f9ea8d3ac1a.zip CMake-0fdfd6bf37146e1b09e410ff5f729f9ea8d3ac1a.tar.gz CMake-0fdfd6bf37146e1b09e410ff5f729f9ea8d3ac1a.tar.bz2 |
Tutorial: Install correctly when built statically
When built statically we failed to install the SqrtLibrary
Diffstat (limited to 'Help/guide/tutorial/Step10')
-rw-r--r-- | Help/guide/tutorial/Step10/MathFunctions/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Help/guide/tutorial/Step10/MathFunctions/CMakeLists.txt b/Help/guide/tutorial/Step10/MathFunctions/CMakeLists.txt index e0c0621..0bfe20c 100644 --- a/Help/guide/tutorial/Step10/MathFunctions/CMakeLists.txt +++ b/Help/guide/tutorial/Step10/MathFunctions/CMakeLists.txt @@ -47,5 +47,9 @@ endif() target_compile_definitions(MathFunctions PRIVATE "EXPORTING_MYMATH") # install rules -install(TARGETS MathFunctions DESTINATION lib) +set(installable_libs MathFunctions) +if(TARGET SqrtLibrary) + list(APPEND installable_libs SqrtLibrary) +endif() +install(TARGETS ${installable_libs} DESTINATION lib) install(FILES MathFunctions.h DESTINATION include) |