Before Change:
mkdir buildcd buildcmake ..
-- The CXX compiler identification is GNU 9.3.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- recipe-02 staged install: Packt/cmake-cookbook-master/chapter-08/recipe-02/cxx-example/build/stage
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component):
boost_find_component Macro invoked with incorrect arguments for macro
named: boost_find_component
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindBoost.cmake:443 (find_package)
external/upstream/boost/CMakeLists.txt:1 (find_package)
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component):
boost_find_component Macro invoked with incorrect arguments for macro
named: boost_find_component
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindBoost.cmake:443 (find_package)
external/upstream/boost/CMakeLists.txt:1 (find_package)
-- Found Boost version 1.71.0
-- Configuring incomplete, errors occurred!
See also "Packt/cmake-cookbook-master/chapter-08/recipe-02/cxx-example/build/CMakeFiles/CMakeOutput.log".
After Change:
-- recipe-02 staged install: Packt/cmake-cookbook-master/chapter-08/recipe-02/cxx-example/build/stage
-- Found Boost version 1.71.0
-- Configuring done
-- Generating done
-- Build files have been written to: Packt/cmake-cookbook-master/chapter-08/recipe-02/cxx-example/build
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
Description
Remove quotes surrounding
"${BOOST_COMPONENTS_REQUIRED}"
How Has This Been Tested?
Before Change:
mkdir build
cd build
cmake ..
-- The CXX compiler identification is GNU 9.3.0 -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- recipe-02 staged install: Packt/cmake-cookbook-master/chapter-08/recipe-02/cxx-example/build/stage CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component): boost_find_component Macro invoked with incorrect arguments for macro named: boost_find_component Call Stack (most recent call first): /usr/share/cmake-3.16/Modules/FindBoost.cmake:443 (find_package) external/upstream/boost/CMakeLists.txt:1 (find_package)CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component): boost_find_component Macro invoked with incorrect arguments for macro named: boost_find_component Call Stack (most recent call first): /usr/share/cmake-3.16/Modules/FindBoost.cmake:443 (find_package) external/upstream/boost/CMakeLists.txt:1 (find_package)
-- Found Boost version 1.71.0 -- Configuring incomplete, errors occurred! See also "Packt/cmake-cookbook-master/chapter-08/recipe-02/cxx-example/build/CMakeFiles/CMakeOutput.log".
After Change: -- recipe-02 staged install: Packt/cmake-cookbook-master/chapter-08/recipe-02/cxx-example/build/stage -- Found Boost version 1.71.0 -- Configuring done -- Generating done -- Build files have been written to: Packt/cmake-cookbook-master/chapter-08/recipe-02/cxx-example/build
Types of changes