From: <rus...@us...> - 2008-09-30 12:10:38
|
Revision: 314 http://gearbox.svn.sourceforge.net/gearbox/?rev=314&view=rev Author: russo2503v Date: 2008-09-30 12:10:21 +0000 (Tue, 30 Sep 2008) Log Message: ----------- without escaping the variable name, explicit strings were never matched and the default value was always used Modified Paths: -------------- gearbox/trunk/cmake/TargetUtils.cmake Modified: gearbox/trunk/cmake/TargetUtils.cmake =================================================================== --- gearbox/trunk/cmake/TargetUtils.cmake 2008-09-30 06:32:33 UTC (rev 313) +++ gearbox/trunk/cmake/TargetUtils.cmake 2008-09-30 12:10:21 UTC (rev 314) @@ -33,13 +33,13 @@ CMAKE_POLICY( SET CMP0003 NEW ) ENDIF( COMMAND cmake_policy ) - IF( type STREQUAL SHARED ) + IF( ${type} STREQUAL SHARED ) SET( libType SHARED ) - ELSEIF( type STREQUAL STATIC ) + ELSEIF( ${type} STREQUAL STATIC ) SET( libType STATIC ) - ELSE( type STREQUAL SHARED ) + ELSE( ${type} STREQUAL SHARED ) SET( libType ${GBX_DEFAULT_LIB_TYPE} ) - ENDIF( type STREQUAL SHARED ) + ENDIF( ${type} STREQUAL SHARED ) ADD_LIBRARY( ${name} ${libType} ${ARGN} ) # SET_TARGET_PROPERTIES( ${name} PROPERTIES This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |