I have downloaded openssh-6.4p1
for Linux and I want to compile it using clang
instead of gcc
. How can I tell the compilation engine to do this? Do I need to modify configure
?
You can try to use the option command like this:
option(USE_CLANG "build application with clang" ON) # OFF is the default
and then you can wrap the clang-compiler settings in the if() condition like this:
if(USE_CLANG)
SET (...)
//...
endif(USE_CLANG)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.