cmake

cmake v3.15.3 cannot find boost v1.71.0

别说谁变了你拦得住时间么 提交于 2020-06-01 07:12:32
问题 I am trying to build from source the following software in Windows 10: https://github.com/FreeOpcUa/freeopcua. I have also installed the latest version of the boost libraries ( boost_1_71_0 ) but when I try to use CMake for compiling the source code, CMake cannot find the location of boost. Environment: Windows 10 CMake version: 3.15.3 boost version: 1.71.0 I have downloaded the latest version of boost from this link: https://dl.bintray.com/boostorg/release/1.71.0/source/boost_1_71_0.zip I

cmake v3.15.3 cannot find boost v1.71.0

家住魔仙堡 提交于 2020-06-01 07:11:03
问题 I am trying to build from source the following software in Windows 10: https://github.com/FreeOpcUa/freeopcua. I have also installed the latest version of the boost libraries ( boost_1_71_0 ) but when I try to use CMake for compiling the source code, CMake cannot find the location of boost. Environment: Windows 10 CMake version: 3.15.3 boost version: 1.71.0 I have downloaded the latest version of boost from this link: https://dl.bintray.com/boostorg/release/1.71.0/source/boost_1_71_0.zip I

How to install cmake-gui latest version on Ubuntu

孤街浪徒 提交于 2020-06-01 05:15:47
问题 When installing from package-manager, cmake-gui or cmake-qt-gui are shipped with an older version of cmake . Even after I build and install cmake 's latest version from source, cmake-gui continues to use the older version. How to force cmake-gui to use cmake latest version builded from source? 回答1: The cmake-gui package from repository has a built-in cmake , those two have the same version. Steps to install cmake-gui latest version. Install checkinstall to easily remove cmake in the future:

Can you have a common cmake minimum included from another file?

北城以北 提交于 2020-05-30 07:36:49
问题 I am quite new to cmake with a makefile background. I like to use things like include(cmake_utils/header.cmake) to include common snippets of cmake files so that I can include them in my projects but only change them in one once in one place. Where cmake_utils is a git repo. This is working nicely, but every single CMakeLists.txt I write has to have a cmake_minimum_required . That is fine, but I may want to change this one day - lets say when one of my common files uses a feature from a newer

CMake - always build specific file

若如初见. 提交于 2020-05-30 06:46:07
问题 I have a specific file that should be rebuilt on each compilation regardless if it has been modified or not. The reason is that it is depending on system macros whose values change. How could I force rebuild with CMake? I'd like to not bind it to specific target: the file should be "touched" before any of the targets specified in CMakeLists.txt begins the actual build process. 回答1: CMake has a add_custom_target command: Adds a target with the given name that executes the given commands. The

CMake - always build specific file

会有一股神秘感。 提交于 2020-05-30 06:45:27
问题 I have a specific file that should be rebuilt on each compilation regardless if it has been modified or not. The reason is that it is depending on system macros whose values change. How could I force rebuild with CMake? I'd like to not bind it to specific target: the file should be "touched" before any of the targets specified in CMakeLists.txt begins the actual build process. 回答1: CMake has a add_custom_target command: Adds a target with the given name that executes the given commands. The

CMake - always build specific file

一个人想着一个人 提交于 2020-05-30 06:45:23
问题 I have a specific file that should be rebuilt on each compilation regardless if it has been modified or not. The reason is that it is depending on system macros whose values change. How could I force rebuild with CMake? I'd like to not bind it to specific target: the file should be "touched" before any of the targets specified in CMakeLists.txt begins the actual build process. 回答1: CMake has a add_custom_target command: Adds a target with the given name that executes the given commands. The

Creating a library in CMake depending on source files not available when generating build files

て烟熏妆下的殇ゞ 提交于 2020-05-29 11:10:20
问题 I have a CMake configuration file building two libraries: a third-party library (here called ThirdPartyLib) containing a real-time OS / board support package from a supplier. It is built outside CMake using the autotools toolchain. an extended version of the former library (here called ExtendedThirdPartyLib) Unfortunately, some source code that I need (various tools) are not built in the ordinary build script for (1). Since I don't want to mess with the suppliers build script I want to add

Creating a library in CMake depending on source files not available when generating build files

夙愿已清 提交于 2020-05-29 11:10:08
问题 I have a CMake configuration file building two libraries: a third-party library (here called ThirdPartyLib) containing a real-time OS / board support package from a supplier. It is built outside CMake using the autotools toolchain. an extended version of the former library (here called ExtendedThirdPartyLib) Unfortunately, some source code that I need (various tools) are not built in the ordinary build script for (1). Since I don't want to mess with the suppliers build script I want to add

Undefined reference errors in simple boost serialization

不打扰是莪最后的温柔 提交于 2020-05-28 04:20:30
问题 I have a minimal example of Boost serialization where I try to save an integer in a binary archive file Here is main.cpp: #include <iostream> #include <fstream> #include <boost/archive/binary_oarchive.hpp> int main() { int t = 0; std::ofstream file("Test.bin"); boost::archive::binary_oarchive archive(file); archive << t; file.close(); return 0; } and here is the CMake file: cmake_minimum_required(VERSION 3.15) project(Test) set(CMAKE_CXX_STANDARD 17) find_package(Boost REQUIRED serialization)