[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [57571] trunk/blender/CMakeLists.txt: dont use 'if(${WITH_STATIC_LIBS})', no need to expend the variable.

Campbell Barton ideasman42 at gmail.com
Wed Jun 19 13:26:12 CEST 2013


Revision: 57571
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=57571
Author:   campbellbarton
Date:     2013-06-19 11:26:11 +0000 (Wed, 19 Jun 2013)
Log Message:
-----------
dont use 'if(${WITH_STATIC_LIBS})', no need to expend the variable.

Modified Paths:
--------------
    trunk/blender/CMakeLists.txt

Modified: trunk/blender/CMakeLists.txt
===================================================================
--- trunk/blender/CMakeLists.txt	2013-06-19 08:57:02 UTC (rev 57570)
+++ trunk/blender/CMakeLists.txt	2013-06-19 11:26:11 UTC (rev 57571)
@@ -562,12 +562,12 @@
 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(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)




More information about the Bf-blender-cvs mailing list