From 5d8f3c1ebd6983db50991a5dd2dc7b794a7909a6 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 26 Oct 2015 14:51:07 -0700 Subject: Cmake: fix incorrect modification of a QT_LIBRARIES It's a list, not a string. Treating it as a string creates all kinds of exciting weird errors that make no sense. Signed-off-by: Dirk Hohndel --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 5e9321eee..3b7845704 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -214,7 +214,7 @@ set(QT_TEST_LIBRARIES ${QT_LIBRARIES} Qt5::Test) if (BTSUPPORT AND "${Qt5Core_VERSION_STRING}" STRLESS "5.4.0") set(BTSUPPORT OFF) message(STATUS "Turning off Bluetooth support as Qt version ${Qt5Core_VERSION_STRING} is insufficiant for that") - string(REPLACE "Qt5::Bluetooth" "" QT_LIBRARIES ${QT_LIBRARIES}) + list(REMOVE_ITEM QT_LIBRARIES Qt5::Bluetooth) endif() # Generate the ssrf-config.h every 'make' -- cgit v1.2.3-70-g09d2