Strip the produced binaries and files.
This commit is contained in:
parent
a3a71733e4
commit
2bce6a2143
|
@ -7,7 +7,7 @@ set(CMAKE_CXX_FLAGS "-pthread")
|
|||
set(CMAKE_CXX_FLAGS_RELEASE "-Os")
|
||||
|
||||
if (${CMAKE_CXX_COMPILER_ID} STREQUAL GNU)
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -fira-loop-pressure -ftree-loop-distribution -floop-interchange -ftree-vectorize -fipa-pta")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -fira-loop-pressure -ftree-loop-distribution -floop-interchange -ftree-vectorize -fipa-pta -s")
|
||||
set(CMAKE_CXX_FLAGS "-flto -fno-use-linker-plugin -fwhole-program ${CMAKE_CXX_FLAGS}")
|
||||
endif()
|
||||
|
||||
|
@ -21,6 +21,7 @@ if(MINGW OR MSVC)
|
|||
endif()
|
||||
|
||||
# CPack configuration
|
||||
set(CPACK_STRIP_FILES TRUE)
|
||||
set(CPACK_VERBATIM_VARIABLES TRUE)
|
||||
string(TIMESTAMP TIME "%Y.%m+%d")
|
||||
set(CPACK_PACKAGE_VERSION "${PROJECT_VERSION}-${TIME}")
|
||||
|
|
Loading…
Reference in New Issue