From 15016873ab74634cf0a1cde0adab8f981ce9e117 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 19 Jun 2013 11:26:11 +0000 Subject: [PATCH] dont use 'if(${WITH_STATIC_LIBS})', no need to expend the variable. --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 16d00dd4b54..e2dda8553d6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -562,12 +562,12 @@ set(PLATFORM_LINKFLAGS_DEBUG "") if(UNIX AND NOT APPLE) macro(find_package_wrapper) string(TOUPPER ${ARGV0} _NAME_UPPER) - if(${WITH_STATIC_LIBS}) + if(WITH_STATIC_LIBS) set(_cmake_find_library_suffixes_back ${CMAKE_FIND_LIBRARY_SUFFIXES}) set(CMAKE_FIND_LIBRARY_SUFFIXES .a ${CMAKE_FIND_LIBRARY_SUFFIXES}) endif() find_package(${ARGV}) - if(${WITH_STATIC_LIBS}) + if(WITH_STATIC_LIBS) set(CMAKE_FIND_LIBRARY_SUFFIXES ${_cmake_find_library_suffixes_back}) unset(_cmake_find_library_suffixes_back) endif() @@ -707,7 +707,7 @@ if(UNIX AND NOT APPLE) if(WITH_BOOST) # uses in build instructions to override include and library variables if(NOT BOOST_CUSTOM) - if(${WITH_STATIC_LIBS}) + if(WITH_STATIC_LIBS) set(Boost_USE_STATIC_LIBS ON) endif() set(Boost_USE_MULTITHREADED ON)