Skip to content

Commit

Permalink
fix syntax to check env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche committed May 3, 2024
1 parent fa91a93 commit f096999
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ macro(define_option name description arrow_option)
# by default, first check if env variable exists, otherwise use Arrow C++ config
set(env_variable "PYARROW_WITH_${name}")
if(DEFINED ENV{${env_variable}})
if(ENV{${env_variable}})
message(STATUS "Env variable is defined: ${env_variable}=$ENV{${env_variable}}")
if($ENV{${env_variable}})
set("PYARROW_BUILD_${name}" ON)
message(STATUS "Setting ${name} to ON through env variable")
else()
Expand Down

0 comments on commit f096999

Please sign in to comment.