From e3826b1a671f4fe9e197b72a9c8dc0aa6976ea0c Mon Sep 17 00:00:00 2001 From: Nicholas Corgan Date: Thu, 14 Aug 2014 06:45:53 -0700 Subject: Restoring compatibility with CMake 2.6 * The UNSET command didn't exist back then, but using SET with no value does the same thing * CMake 2.6 doesn't like nested parantheses in IF statements, so tweak IF/ELSE statements --- host/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'host/CMakeLists.txt') diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt index 2c574c54f..ba16ce894 100644 --- a/host/CMakeLists.txt +++ b/host/CMakeLists.txt @@ -149,7 +149,7 @@ IF(MSVC) IF(BOOST_ALL_DYN_LINK) ADD_DEFINITIONS(-DBOOST_ALL_DYN_LINK) #setup boost auto-linking in msvc ELSE(BOOST_ALL_DYN_LINK) - UNSET(BOOST_REQUIRED_COMPONENTS) #empty components list for static link + SET(BOOST_REQUIRED_COMPONENTS) #empty components list for static link ENDIF(BOOST_ALL_DYN_LINK) ENDIF(MSVC) @@ -262,8 +262,8 @@ STRING(REPLACE ";" " " UHD_PC_LIBS "${UHD_PC_LIBS}") #unset these vars to avoid hard-coded paths to cross environment IF(CMAKE_CROSSCOMPILING) - UNSET(UHD_PC_CFLAGS) - UNSET(UHD_PC_LIBS) + SET(UHD_PC_CFLAGS) + SET(UHD_PC_LIBS) ENDIF(CMAKE_CROSSCOMPILING) IF(NOT LIBUHD_PKG AND NOT UHDHOST_PKG) -- cgit v1.2.3