set Release as default option
This commit is contained in:
parent
0b2764ea61
commit
56c32624a4
1 changed files with 1 additions and 0 deletions
|
@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.7.2)
|
|||
project (dump-build-information)
|
||||
add_executable(dummy dummy.cpp )
|
||||
set_target_properties(dummy PROPERTIES COMPILE_FLAGS ${BUILD_FLAGS} -frecord-gcc-switches)
|
||||
set(CMAKE_BUILD_TYPE Release)
|
||||
|
||||
add_custom_command (OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/buildinformation.h
|
||||
COMMAND echo \"\#define USED_FLAGS \\\"\"`readelf -p .GCC.command.line ${CMAKE_CURRENT_BINARY_DIR}/dummy | grep -v -e dummy -e "-frecord-gcc-switches" | grep -e \"\\[.*\\]\" | cut -d\\] -f2- | tr -d \"\\n\"`\\\" >> ${CMAKE_CURRENT_BINARY_DIR}/buildinformation.h
|
||||
|
|
Loading…
Reference in a new issue