cmake-cookbook icon indicating copy to clipboard operation
cmake-cookbook copied to clipboard

CMake Cookbook recipes.

Results 28 cmake-cookbook issues
Sort by recently updated
recently updated
newest added

cmake fails with `boost_find_component Macro invoked with incorrect arguments` ## Possible Solution replace `find_package(Boost ${Boost_MINIMUM_REQUIRED} QUIET COMPONENTS "${BOOST_COMPONENTS_REQUIRED}")` with `find_package(Boost ${Boost_MINIMUM_REQUIRED} QUIET COMPONENTS ${BOOST_COMPONENTS_REQUIRED})` ## Environment * Version used: cmake...

[100%] Linking CXX executable ../bin/cpp_test /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function `_start': (.text+0x20): undefined reference to `main' CMakeFiles/cpp_test.dir/test.cpp.o: In function `init_unit_test_suite(int, char**)': test.cpp:(.text+0x6f): undefined reference to `boost::unit_test::framework::master_test_suite()' CMakeFiles/cpp_test.dir/test.cpp.o: In function `add_example_invoker()': test.cpp:(.text+0x18f): undefined...

Hi, I am learning CMake using your book. In Chapter 8, Recipe 3, when I build the project using `cmake --build .` inside the `build` folder, somewhere after the downloading...

## Expected Behavior when USE_LIBRARY is true, we can change some varible to make shared or static lib ## Current Behavior when USE_LIBRARY is true, we can only make shared...

bug

Dear Authors, Congratulations for your book, I consider it very interesting. I'm not very expert in compilation,. I just simply cannot compiles the recipes of the first chapter because it...

Reading through the book, the function set_compiler_flag doesn't result in the expected behavior. ## Expected Behavior After calling set_compiler_flag, I would expect that compiler flag to be set. ## Current...

I just started working through the book and find that there are several inconsistencies with the book and recipes. Any plans to update the book to have a consistent flow....

I don't actually know much Python. I am working on a Windows 7 machine with Visual Studio 2017 and a number of other development packages installed. For instance I've installed...

I get error "Command failed: The system cannot find the file specified" when building ("cmake --build .") Chapter 08, recipe 02, superbuilding with boost. It seems like it tries to...

testing
appveyor-ci

## Expected Behavior When creating a new commit and running `cmake --build .` it should update the header file with the new commit hash. ## Current Behavior The commit hash...