This commit is contained in:
Yuhang Zhao 2023-08-26 12:44:00 +08:00
parent 7215bd692b
commit a0d72f177e
1 changed files with 2 additions and 2 deletions

View File

@ -45,12 +45,12 @@ function(are_paths_equal lhs rhs out_var)
endfunction() endfunction()
function(compute_install_dir) function(compute_install_dir)
cmake_parse_arguments(arg "NO_64BIT_SUFFIX;ROOT" "IS_MULTI_CONFIG;BIN_DIR;LIB_DIR;INCLUDE_DIR;QML_DIR;DATA_DIR;INFO_DIR;MAN_DIR;DOC_DIR;LOCALE_DIR" "" ${ARGN}) cmake_parse_arguments(arg "APPEND_64BIT_SUFFIX;ROOT" "IS_MULTI_CONFIG;BIN_DIR;LIB_DIR;INCLUDE_DIR;QML_DIR;DATA_DIR;INFO_DIR;MAN_DIR;DOC_DIR;LOCALE_DIR" "" ${ARGN})
if(arg_UNPARSED_ARGUMENTS) if(arg_UNPARSED_ARGUMENTS)
message(AUTHOR_WARNING "compute_install_dir: Unrecognized arguments: ${arg_UNPARSED_ARGUMENTS}") message(AUTHOR_WARNING "compute_install_dir: Unrecognized arguments: ${arg_UNPARSED_ARGUMENTS}")
endif() endif()
set(__dir_suffix "") set(__dir_suffix "")
if(CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT arg_NO_64BIT_SUFFIX) if(CMAKE_SIZEOF_VOID_P EQUAL 8 AND arg_APPEND_64BIT_SUFFIX)
set(__dir_suffix "64") set(__dir_suffix "64")
endif() endif()
include(GNUInstallDirs) include(GNUInstallDirs)