Skip to content

Commit

Permalink
fixing checks on oshmem_info
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-clmsn committed Nov 7, 2023
1 parent 7c8d063 commit 17c2709
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions cmake/HPX_SetupOpenSHMEM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,13 @@ macro(hpx_setup_openshmem)

file(READ ${OSHMEM_INFO_OUTPUT} OSHMEM_INFO_OUTPUT_CONTENT)

if(NOT OSHMEM_INFO_OUTPUT_CONTENT)
if(NOT DEFINED OSHMEM_INFO_OUTPUT_CONTENT)
message(
FATAL_ERROR "${OSHMEM_INFO} Failed! Check: ${OSHMEM_INFO_ERROR}"
)
endif()

if("${OSHMEM_INFO_OUTPUT_CONTENT}" STREQUAL "")
message(
FATAL_ERROR "${OSHMEM_INFO} Failed! Check: ${OSHMEM_INFO_ERROR}"
)
Expand Down Expand Up @@ -119,7 +125,14 @@ macro(hpx_setup_openshmem)

file(READ ${OSHMEM_INFO_INCOUTPUT} OSHMEM_INFO_OUTPUT_INCCONTENT)

if(NOT OSHMEM_INFO_OUTPUT_INCCONTENT)
if(NOT DEFINED OSHMEM_INFO_OUTPUT_INCCONTENT)
message(
FATAL_ERROR
"${OSHMEM_INFO} Failed! Check: ${OSHMEM_INFO_INCERROR}"
)
endif()

if("${OSHMEM_INFO_OUTPUT_INCCONTENT}" STREQUAL "")
message(
FATAL_ERROR
"${OSHMEM_INFO} Failed! Check: ${OSHMEM_INFO_INCERROR}"
Expand Down

0 comments on commit 17c2709

Please sign in to comment.