execute_process
has a flag for stripping trailing whitespace on either standard out or standard error (or both)
[OUTPUT_STRIP_TRAILING_WHITESPACE]
[ERROR_STRIP_TRAILING_WHITESPACE]
https://cmake.org/cmake/help/v3.0/command/execute_process.html
More Related Contents:
- What’s the CMake syntax to set and use variables?
- What is the proper way to use `pkg-config` from `cmake`?
- CMake: In which order are files parsed (cache, toolchain, etc.)?
- How to specify a compiler in CMake?
- Why is cmake file GLOB evil?
- How to modify environment variables passed to custom CMake target?
- Copy file from source directory to binary directory using CMake
- Find package Eigen3 for CMake
- CMake share library with multiple executables
- Listing include_directories in CMake
- Recursive list of LINK_LIBRARIES in CMake
- Building a tool immediately so it can be used later in same CMake run
- How to instruct CMake to use the build architecture compiler
- What is CMake equivalent of ‘configure –prefix=DIR && make all install ‘?
- What is a CMake generator?
- Add Source in a subdirectory to a cmake project
- How to detect if current scope has a parent in CMake?
- CMake: How to build external projects and include their targets
- CMake how to set the build directory to be different than source directory
- Passing compiler options in CMake
- how to add prebuilt object files to executable in cmake
- spacing in -D option in cmake
- How to use CMake to find and link to a library using install-export and find_package?
- How do I include a literal double quote in a custom CMake command?
- CMake : Changing name of Visual Studio and Xcode exectuables depending on configuration in a project generated by CMake
- Why add header files into the add_library/add_executable commands in CMake?
- How to list all CMake build options and their default values?
- Passing an argument to CMAKE via command prompt
- CMake: how to change compiler for individual target
- CMake and finding other projects and their dependencies