summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Faure <[email protected]>2015-07-26 17:20:27 +0200
committerDavid Faure <[email protected]>2015-07-26 17:20:27 +0200
commit0ad80b3945f0447a636a2c87704e6eb249795486 (patch)
tree4dac67d20baf047718da37635cb5280033d67aad
parentb5359d6f8573d1971c23afb0d282371bb0c78154 (diff)
set cmake_min_req to match kdelibs policy; fix build accordingly
-rw-r--r--CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f1039f1..463f1dc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required(VERSION 2.8.9)
project(filesharing)
if(NOT INSIDE_KDENETWORK)
@@ -28,12 +29,12 @@ endif(NOT INSIDE_KDENETWORK)
option(SAMBA_INSTALL "Offer to install Samba for file sharing with PackageKit if it is not already installed, use -DSAMBA_INSTALL=off to disable, use -DSAMBA_PACKAGE_NAME= to set package name." ON)
if(NOT SAMBA_PACKAGE_NAME)
- set(SAMBA_PACKAGE_NAME \\\"samba\\\")
+ set(SAMBA_PACKAGE_NAME "samba")
endif(NOT SAMBA_PACKAGE_NAME)
if(SAMBA_INSTALL)
message(STATUS "Samba install feature will be enabled.")
add_definitions(-DSAMBA_INSTALL)
- add_definitions(-DSAMBA_PACKAGE_NAME=${SAMBA_PACKAGE_NAME})
+ add_definitions(-DSAMBA_PACKAGE_NAME="\\\"${SAMBA_PACKAGE_NAME}\\\"")
else(SAMBA_INSTALL)
message(STATUS "Samba install feature will NOT be enabled.")
endif(SAMBA_INSTALL)