cmake_policy规定了cmake解析行为

-- Configuring done CMake Warning (dev) in CMakeLists.txt: Policy CMP0081 is not set: Relative paths not allowed in LINK_DIRECTORIES target property. Run "cmake --help-policy CMP0081" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Found relative path while evaluating link directories of "portal": "../fep/lib" This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) in CMakeLists.txt: Policy CMP0081 is not set: Relative paths not allowed in LINK_DIRECTORIES target property. Run "cmake --help-policy CMP0081" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Found relative path while evaluating link directories of "portal": "../fep/lib/usrlib" This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) in CMakeLists.txt: Policy CMP0081 is not set: Relative paths not allowed in LINK_DIRECTORIES target property. Run "cmake --help-policy CMP0081" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Found relative path while evaluating link directories of "portal": "../lib" This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) in CMakeLists.txt: Policy CMP0081 is not set: Relative paths not allowed in LINK_DIRECTORIES target property. Run "cmake --help-policy CMP0081" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Found relative path while evaluating link directories of "portal": "../fep/lib" This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) in CMakeLists.txt: Policy CMP0081 is not set: Relative paths not allowed in LINK_DIRECTORIES target property. Run "cmake --help-policy CMP0081" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Found relative path while evaluating link directories of "portal": "../fep/lib/usrlib" This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) in CMakeLists.txt: Policy CMP0081 is not set: Relative paths not allowed in LINK_DIRECTORIES target property. Run "cmake --help-policy CMP0081" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Found relative path while evaluating link directories of "portal": "../lib" 报错解析
10-21
CMake Error at /usr/share/cmake-3.16/Modules/Platform/Android-Determine.cmake:194 (list): list GET given empty list Call Stack (most recent call first): /usr/share/cmake-3.16/Modules/CMakeDetermineSystem.cmake:129 (include) CMakeLists.txt:30 (project) CMake Error at /usr/share/cmake-3.16/Modules/Platform/Android-Determine.cmake:198 (message): Android: The API specified by CMAKE_SYSTEM_VERSION='' is not an integer. Call Stack (most recent call first): /usr/share/cmake-3.16/Modules/CMakeDetermineSystem.cmake:129 (include) CMakeLists.txt:30 (project) CMake Warning (dev) in /usr/share/cmake-3.16/Modules/Platform/Android-Determine.cmake: Policy CMP0011 is not set: Included scripts do automatic cmake_policy PUSH and POP. Run "cmake --help-policy CMP0011" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The included script /usr/share/cmake-3.16/Modules/Platform/Android-Determine.cmake affects policy settings. CMake is implying the NO_POLICY_SCOPE option for compatibility, so the effects are applied to the including context. Call Stack (most recent call first): /usr/share/cmake-3.16/Modules/CMakeDetermineSystem.cmake:129 (include) CMakeLists.txt:30 (project) This warning is for project developers. Use -Wno-dev to suppress it. CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred! 什么意思
03-18
# # Copyright (c) 2019-2024 Siddharth Chandrasekaran <sidcha.dev@gmail.com> # # SPDX-License-Identifier: Apache-2.0 # cmake_minimum_required(VERSION 3.14 FATAL_ERROR) cmake_policy(SET CMP0063 NEW) project(libosdp VERSION 3.0.8) set(PROJECT_AUTHOR "Siddharth Chandrasekaran") set(PROJECT_AUTHOR_EMAIL "sidcha.dev@gmail.com") set(PROJECT_YEAR "2019") set(PROJECT_ORG "goToMain") set(PROJECT_URL "https://github.com/goToMain/libosdp/") set(PROJECT_HOMEPAGE "https://libosdp.sidcha.dev/") set(PROJECT_DESCRIPTION "Open Supervised Device Protocol (OSDP) Library") set(PROJECT_LICENSE "Apache License, Version 2.0 (Apache-2.0)") set(CMAKE_EXPORT_COMPILE_COMMANDS ON) ## Includes list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") include(AddCCompilerFlag) include(GitInfo) include(BuildType) include(GNUInstallDirs) ## Global settings if(NOT MSVC) add_compile_options(-Wall -Wextra) endif() set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) set(CMAKE_WARN_DEPRECATED ON) option(CONFIG_OSDP_STATIC_PD "Setup PD single statically" OFF) option(CONFIG_OSDP_LIB_ONLY "Only build the library" OFF) # Each subdirectory has it's own CMakeLists.txt include(GitSubmodules) add_subdirectory(src) if (NOT CONFIG_OSDP_STATIC_PD AND NOT CONFIG_OSDP_LIB_ONLY AND NOT MSVC) add_subdirectory(utils) add_subdirectory(tests/unit-tests) add_subdirectory(examples/c) add_subdirectory(examples/cpp) add_subdirectory(doc) endif() ## uninstall target add_custom_target(uninstall COMMAND xargs rm < ${CMAKE_BINARY_DIR}/install_manifest.txt ) ## include package rules at last include(CreatePackages)
09-24
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值