Commit b62172a1c9e3e332fa55caec6dfb84f894210b9e
Committed by
GitHub
Merge pull request #48 from hmartiro/zerozez-master
Install static lib if built
Showing
1 changed file
with
9 additions
and
2 deletions
CMakeLists.txt
| ... | ... | @@ -181,8 +181,15 @@ if(CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT LIB_SUFFIX) |
| 181 | 181 | set(LIB_SUFFIX "64") |
| 182 | 182 | endif() |
| 183 | 183 | |
| 184 | -# Install the dynamic library to /usr/lib[64] | |
| 185 | -install(TARGETS redox DESTINATION lib${LIB_SUFFIX}) | |
| 184 | +if (lib) | |
| 185 | + # Install the dynamic library to /usr/lib[64] | |
| 186 | + install(TARGETS redox DESTINATION lib${LIB_SUFFIX}) | |
| 187 | +endif() | |
| 188 | + | |
| 189 | +if (static_lib) | |
| 190 | + # Install the static library to /usr/lib[64] | |
| 191 | + install(TARGETS redox_static DESTINATION lib${LIB_SUFFIX}) | |
| 192 | +endif() | |
| 186 | 193 | |
| 187 | 194 | # Install the headers into /usr/include/redox |
| 188 | 195 | install(FILES ${INC_REDOX_CORE} DESTINATION include/redox) | ... | ... |