From d4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d Mon Sep 17 00:00:00 2001 From: samelian Date: Tue, 7 Dec 2010 20:27:44 +0000 Subject: [kdelibs] allow compiling when arts headers are installed in /usr/include git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1204531 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- arts/kde/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'arts') diff --git a/arts/kde/CMakeLists.txt b/arts/kde/CMakeLists.txt index 70282455e..a28576a94 100644 --- a/arts/kde/CMakeLists.txt +++ b/arts/kde/CMakeLists.txt @@ -31,6 +31,11 @@ link_directories( ${ARTS_LIBRARY_DIRS} ) +# pkg-config stripping -I/usr/include +if( NOT ARTS_INCLUDE_DIRS ) + set( ARTS_INCLUDE_DIRS "/usr/include" ) +endif() + ##### headers ################################### @@ -57,7 +62,7 @@ set( ${target}_SRCS add_custom_command( OUTPUT artskde.cc artskde.h COMMAND ${ARTS_MCOPIDL_EXECUTABLE} - ARGS -I${ARTS_INCLUDE_DIRS} ${CMAKE_CURRENT_SOURCE_DIR}/artskde.idl + -I${ARTS_INCLUDE_DIRS} ${CMAKE_CURRENT_SOURCE_DIR}/artskde.idl DEPENDS artskde.idl ) -- cgit v1.2.1