Skip to content

Commit

Permalink
Merge pull request #1119 from bitshares/oxarbitrage-patch-4
Browse files Browse the repository at this point in the history
add USE_PROFILER to Cmake
  • Loading branch information
oxarbitrage authored Jul 30, 2018
2 parents 412f166 + 1f435ee commit 583a06b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ if (USE_PCH)
include (cotire)
endif(USE_PCH)

option(USE_PROFILER "Build with GPROF support(Linux)." OFF)

IF( NOT WIN32 )
list( APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/libraries/fc/CMakeModules" )
ENDIF( NOT WIN32 )
Expand Down Expand Up @@ -112,6 +114,9 @@ else( WIN32 ) # Apple AND Linux
# Linux Specific Options Here
message( STATUS "Configuring BitShares on Linux" )
set( CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -std=c++11 -Wall" )
if(USE_PROFILER)
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pg" )
endif( USE_PROFILER )
set( rt_library rt )
set( pthread_library pthread)
if ( NOT DEFINED crypto_library )
Expand Down Expand Up @@ -203,3 +208,7 @@ endif(LINUX)

include(CPack)
endif(ENABLE_INSTALLER)

MESSAGE( STATUS "" )
MESSAGE( STATUS "PROFILER: ${USE_PROFILER}" )
MESSAGE( STATUS "" )

0 comments on commit 583a06b

Please sign in to comment.