From: Jo-Philipp Wich Date: Sat, 18 Feb 2017 12:32:45 +0000 (+0100) Subject: build: fix handling of string options X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=70b9bffc7dbffaf526a665c92d732c110baccaa2;p=project%2Fopkg-lede.git build: fix handling of string options Signed-off-by: Jo-Philipp Wich --- diff --git a/CMakeLists.txt b/CMakeLists.txt index b99b58e..e657f54 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,10 +2,11 @@ cmake_minimum_required(VERSION 2.6) PROJECT(opkg C) -OPTION(HOST_CPU "Override Host CPU") -OPTION(BUILD_CPU "Override Host CPU") -OPTION(LOCK_FILE "Override lock file path" /var/lock/opkg.lock) -OPTION(STATIC_UBOX "Statically link libubox") +SET(HOST_CPU "" CACHE STRING "Override Host CPU") +SET(BUILD_CPU "" CACHE STRING "Override Host CPU") +SET(LOCK_FILE "/var/lock/opkg.lock" CACHE STRING "Override lock file path") + +OPTION(STATIC_UBOX "Statically link libubox" OFF) OPTION(BUILD_TESTS "Build test programs" ON) IF(NOT HOST_CPU)