vcpkg/scripts/cmake/vcpkg_get_program_files_32_bit.cmake
2017-02-14 17:29:47 -08:00

7 lines
233 B
CMake

function(vcpkg_get_program_files_32_bit ret)
if(DEFINED ENV{ProgramFiles\(X86\)})
set(${ret} $ENV{ProgramFiles\(X86\)} PARENT_SCOPE)
else()
set(${ret} $ENV{PROGRAMFILES} PARENT_SCOPE)
endif()
endfunction()