Explorar el Código

Fix LY_3RDPARTY_PATH environment variable query being wrong

Signed-off-by: Markus Prettner <[email protected]>
Markus Prettner hace 2 años
padre
commit
0570544fc6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      cmake/3rdParty.cmake

+ 1 - 1
cmake/3rdParty.cmake

@@ -30,7 +30,7 @@ function(get_default_third_party_folder output_third_party_path)
     
     
     # 1. Highest priority, cache variable, that will override the value of any of the cases below
     # 1. Highest priority, cache variable, that will override the value of any of the cases below
     # 2. if defined in an env variable, take it from there
     # 2. if defined in an env variable, take it from there
-    if($ENV{LY_3RDPARTY_PATH})
+    if(DEFINED ENV{LY_3RDPARTY_PATH})
         set(${output_third_party_path} $ENV{LY_3RDPARTY_PATH} PARENT_SCOPE)
         set(${output_third_party_path} $ENV{LY_3RDPARTY_PATH} PARENT_SCOPE)
         return()
         return()
     endif()
     endif()