vcpkg/scripts/cmake/vcpkg_get_program_files_32_bit.cmake

7 lines
233 B
CMake
Raw Normal View History

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()