Commit ca6df87d authored by ESTERIE Pierre's avatar ESTERIE Pierre
Browse files

Fix export when MPI is not activated.

parent f741ad51
......@@ -2,7 +2,11 @@
# Export Library
# --------------
set(PACKAGES ${CMAKE_PROJECT_NAME}-headers ${CMAKE_PROJECT_NAME}-core ${CMAKE_PROJECT_NAME}-mpi)
set(PACKAGES ${CMAKE_PROJECT_NAME}-headers ${CMAKE_PROJECT_NAME}-core)
if(${CMAKE_PROJECT_NAME}_USE_MPI)
list(APPEND PACKAGES ${CMAKE_PROJECT_NAME}-mpi)
endif()
install(TARGETS ${PACKAGES}
EXPORT ${CMAKE_PROJECT_NAME}-targets
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment