From 8cff90194a8cd34f0adb69c7f6c59919c3c56a3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20A=C5=9F=C4=B1c=C4=B1?= Date: Tue, 10 Aug 2010 14:30:23 +0000 Subject: [PATCH] Do not hard code Python version --- comar/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/comar/CMakeLists.txt b/comar/CMakeLists.txt index e0327fe..c4460b6 100644 --- a/comar/CMakeLists.txt +++ b/comar/CMakeLists.txt @@ -4,6 +4,9 @@ PROJECT (comar) # CMake 2.6 required CMAKE_MINIMUM_REQUIRED(VERSION 2.6) +# Python is required +FIND_PACKAGE(PythonLibs) + # Application name SET (APP_NAME "comar") SET (APP_SUFFIX "3") @@ -44,12 +47,12 @@ SET (SOURCES src/main.c src/utils.c) # Set standard libraries -SET (LIBS python2.6 +SET (LIBS ${PYTHON_LIBRARIES} dbus-1) # Include standard headers INCLUDE_DIRECTORIES (include/ - /usr/include/python2.6 + ${PYTHON_INCLUDE_DIRS} /usr/include/dbus-1.0 /usr/lib/dbus-1.0/include) -- 2.18.1