From df4e807a2b0c447cbe34ad1f1f93c620299774e1 Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Tue, 9 Jan 2018 21:17:38 +0100 Subject: Fix profiling build Also remove ConfigCompileFlags.cmake (which wasn't included anymore for almost 10 years now) --- CMakeScripts/DefineDependsandFlags.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'CMakeScripts/DefineDependsandFlags.cmake') diff --git a/CMakeScripts/DefineDependsandFlags.cmake b/CMakeScripts/DefineDependsandFlags.cmake index fac2d2160..ca0afe004 100644 --- a/CMakeScripts/DefineDependsandFlags.cmake +++ b/CMakeScripts/DefineDependsandFlags.cmake @@ -16,6 +16,15 @@ list(APPEND INKSCAPE_INCS ${PROJECT_SOURCE_DIR} # ---------------------------------------------------------------------------- list(APPEND INKSCAPE_CXX_FLAGS "-std=c++11") + +# Define the flags for profiling if desired: +if(WITH_PROFILING) + set(BUILD_SHARED_LIBS off) + SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pg") + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pg") +endif() + + # ---------------------------------------------------------------------------- # Files we include # ---------------------------------------------------------------------------- -- cgit v1.2.3