How to config cmake for strip file
Cleanest possible way is to modify CFLAGS or CXXFLAGS (depending on C or C++ code) set(CMAKE_C_FLAGS_RELEASE “${CMAKE_C_FLAGS_RELEASE} -s”) set(CMAKE_CXX_FLAGS_RELEASE “${CMAKE_CXX_FLAGS_RELEASE} -s”) But there is one more hack if you do not want to change your build system (figuring out exact place where to put above lines might be tricky). You may just use strip as … Read more