File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ if (USE_PCH)
32
32
include (cotire)
33
33
endif (USE_PCH)
34
34
35
+ option (USE_PROFILER "Build with GPROF support(Linux)." OFF )
36
+
35
37
IF ( NOT WIN32 )
36
38
list ( APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR} /libraries/fc/CMakeModules" )
37
39
ENDIF ( NOT WIN32 )
@@ -112,6 +114,9 @@ else( WIN32 ) # Apple AND Linux
112
114
# Linux Specific Options Here
113
115
message ( STATUS "Configuring BitShares on Linux" )
114
116
set ( CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -std=c++11 -Wall" )
117
+ if (USE_PROFILER)
118
+ set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pg" )
119
+ endif ( USE_PROFILER )
115
120
set ( rt_library rt )
116
121
set ( pthread_library pthread)
117
122
if ( NOT DEFINED crypto_library )
@@ -203,3 +208,7 @@ endif(LINUX)
203
208
204
209
include (CPack)
205
210
endif (ENABLE_INSTALLER)
211
+
212
+ MESSAGE ( STATUS "" )
213
+ MESSAGE ( STATUS "PROFILER: ${USE_PROFILER} " )
214
+ MESSAGE ( STATUS "" )
You can’t perform that action at this time.
0 commit comments