
- #HOW TO INSTALL XERCES ON WINDOWS VISUAL STUDIO GENERATOR#
- #HOW TO INSTALL XERCES ON WINDOWS VISUAL STUDIO MANUAL#
So rebuild boost by specifying the -layout=system parameter, and also decide the variant by specifying variant=debug or variant=release.Īs a starting point, on SF you can find the build log file: For explanation about the "layout" parameter see here. Unfortunately only the system layout matches, which means you need to separate Debug and Release builds in different "lib" folders. Libboost_- libboost_- libboost_- libboost_ libboost_)
#HOW TO INSTALL XERCES ON WINDOWS VISUAL STUDIO MANUAL#
You can make it work without manual renaming, without GCC or MINGW, if you rebuild your boost with one of the file naming "layouts", your CMake recognizes. So CMake tries its best to recognize that version, so it still may work (see point 3 Natter correctly pointed out above that Boost_ARCHITECTURE is handled only from CMake 3.13. New Boost version may have incorrect or missing dependencies and imported targetsīecause that CMake version does not prepared for boost 1.69 (Maybe latest CMake does.). I'm new with cmake, so may be there is another solution. It is possible to set the working directory with add_test, which apparently make ctest find the executable but the test then crashes with a "BAD_COMMAND" error. I could not find any other working solution. It can get a little verbose if you have lot of tests to declare so I use a macro like : macro (create_test target)Īssuming the test name is the same as the executable name. There is other expression referenced in cmake documentation.

The generation expression $ will expand to the output file of the executable target (ttest here), so you are sure there is no problem with the directory.

#HOW TO INSTALL XERCES ON WINDOWS VISUAL STUDIO GENERATOR#
If you want something more robust, the best is to use the long add_test command and generator expressions : add_test(NAME ttest COMMAND $) I've the following CMakeLists.txt: cmake_minimum_required (VERSION 3.12.0)

I want to use vcpkg in a CMake project in Windows, because I need boost and xerces that are both handled by this package manager.
