cmake: only install shared lib and friends

This commit is contained in:
Christoph Junghans
2020-04-29 18:06:33 -06:00
parent 600d357155
commit 1adda03202
14 changed files with 15 additions and 68 deletions

View File

@ -35,9 +35,6 @@ if(DOWNLOAD_MSCG)
INTERFACE_LINK_LIBRARIES "${LAPACK_LIBRARIES}")
target_link_libraries(lammps PRIVATE LAMMPS::MSCG)
add_dependencies(LAMMPS::MSCG mscg_build)
if(NOT BUILD_SHARED_LIBS)
install(CODE "MESSAGE(FATAL_ERROR \"Installing liblammps with downloaded libraries is currently not supported.\")")
endif()
else()
find_package(MSCG)
if(NOT MSCG_FOUND)