Skip to content

Commit

Permalink
add debug information to cpp examples compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
mindhells committed May 13, 2020
1 parent 2a7d25d commit 1a6bf0f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ project(simple_mandelbrot)

set(CMAKE_CXX_STANDARD 17)

# add some debug information: elapsed time and compiler information
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CMAKE_COMMAND} -E time")
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK "${CMAKE_COMMAND} -E time")
set(CMAKE_VERBOSE_MAKEFILE on)
message("Compiler: ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}")

include_directories(${PROJECT_SOURCE_DIR})
include_directories(${PROJECT_SOURCE_DIR}/model)

Expand Down

0 comments on commit 1a6bf0f

Please sign in to comment.