Skip to content

Commit

Permalink
Check additional MPI header's emptiness
Browse files Browse the repository at this point in the history
  • Loading branch information
do-jason authored and biochem-fan committed Aug 25, 2022
1 parent f08e6e0 commit 0dec6fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ endif(ALTCPU)
find_package(MPI REQUIRED)

if ("${MPI_CXX_INCLUDE_DIRS}" STREQUAL "")
include_directories("${MPI_CXX_INCLUDE_PATH}")
if (NOT "${MPI_CXX_INCLUDE_PATH}" STREQUAL "")
include_directories("${MPI_CXX_INCLUDE_PATH}")
endif()
else()
include_directories("${MPI_CXX_INCLUDE_DIRS}")
endif()
Expand Down

0 comments on commit 0dec6fe

Please sign in to comment.