Setting CMake build options that calls a script .

I'm trying to benchmark different project setups for compile times. To do this I've written a script that calls clang and clang++ with output redirected somewhere else. The only issue is to not need two scripts I pass the name of the compiler into the script, but that keeps getting put on a separate line.

CMAKE_C_COMPILER=$(/home/user/gitRepos/xml_parser/DevelopmentTools/ clang)
CMAKE_CXX_COMPILER=$(/home/user/gitRepos/xml_parser/DevelopmentTools/ clang++)

The clang and clang++ always get forced down to a separate line after closing the menu. Is there anyway to save the correct formating, So, that script will run correctly?

Please sign in to leave a comment.