Skip to content

Commit 32796ee

Browse files
authored
Use unified approach for checking the existence of environment variables (#105)
Signed-off-by: Christopher Wecht <[email protected]>
1 parent fefe76b commit 32796ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rti_connext_dds_cmake_module/cmake/rti_build_helper.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ endfunction()
405405
# (e.g. ".DS_Store").
406406
################################################################################
407407
function(rti_guess_connextdds_arch)
408-
if(ENV{CONNEXTDDS_ARCH})
408+
if(NOT "$ENV{CONNEXTDDS_ARCH}" STREQUAL "")
409409
set(CONNEXTDDS_ARCH $ENV{CONNEXTDDS_ARCH} PARENT_SCOPE)
410410
return()
411411
endif()

0 commit comments

Comments
 (0)