summaryrefslogtreecommitdiffstats
path: root/Modules/FindwxWidgets.cmake
diff options
context:
space:
mode:
authorMiguel A. Figueroa-Villanueva <miguelf@ieee.org>2007-12-02 03:51:25 (GMT)
committerMiguel A. Figueroa-Villanueva <miguelf@ieee.org>2007-12-02 03:51:25 (GMT)
commit51fce4d391cd72775bcf842fd63060a3bab64bc5 (patch)
tree66691d2b6f2f86f9ab802343d8c55d867ec28dd4 /Modules/FindwxWidgets.cmake
parent895a2384fa514b0afd68b57fa4012fc91653f0c4 (diff)
downloadCMake-51fce4d391cd72775bcf842fd63060a3bab64bc5.zip
CMake-51fce4d391cd72775bcf842fd63060a3bab64bc5.tar.gz
CMake-51fce4d391cd72775bcf842fd63060a3bab64bc5.tar.bz2
STYLE: Use LIST(APPEND ...) instead of SET(...)
Diffstat (limited to 'Modules/FindwxWidgets.cmake')
-rw-r--r--Modules/FindwxWidgets.cmake25
1 files changed, 7 insertions, 18 deletions
diff --git a/Modules/FindwxWidgets.cmake b/Modules/FindwxWidgets.cmake
index 5970eba..8d514c2 100644
--- a/Modules/FindwxWidgets.cmake
+++ b/Modules/FindwxWidgets.cmake
@@ -317,9 +317,8 @@ IF(WIN32_STYLE_FIND)
DBG_MSG_V("WX_${LIB}d : ${WX_${LIB}d}")
IF(WX_${LIB} AND WX_${LIB}d)
DBG_MSG_V("Found ${LIB} and ${LIB}d")
- SET(wxWidgets_LIBRARIES ${wxWidgets_LIBRARIES}
- debug ${WX_${LIB}d}
- optimized ${WX_${LIB}}
+ LIST(APPEND wxWidgets_LIBRARIES
+ debug ${WX_${LIB}d} optimized ${WX_${LIB}}
)
ELSE(WX_${LIB} AND WX_${LIB}d)
DBG_MSG_V("- not found due to missing WX_${LIB}=${WX_${LIB}} or WX_${LIB}d=${WX_${LIB}d}")
@@ -332,9 +331,7 @@ IF(WIN32_STYLE_FIND)
DBG_MSG_V("WX_${LIB}${_DBG} : ${WX_${LIB}${_DBG}}")
IF(WX_${LIB}${_DBG})
DBG_MSG_V("Found ${LIB}${_DBG}")
- SET(wxWidgets_LIBRARIES ${wxWidgets_LIBRARIES}
- ${WX_${LIB}${_DBG}}
- )
+ LIST(APPEND wxWidgets_LIBRARIES ${WX_${LIB}${_DBG}})
ELSE(WX_${LIB}${_DBG})
DBG_MSG_V(
"- not found due to missing WX_${LIB}${_DBG}=${WX_${LIB}${_DBG}}")
@@ -347,18 +344,10 @@ IF(WIN32_STYLE_FIND)
LIST(FIND ${_LIBS} gl WX_USE_GL)
IF(NOT WX_USE_GL EQUAL -1)
DBG_MSG_V("- is required.")
- SET(wxWidgets_LIBRARIES ${wxWidgets_LIBRARIES}
- opengl32
- glu32
- )
+ LIST(APPEND wxWidgets_LIBRARIES opengl32 glu32)
ENDIF(NOT WX_USE_GL EQUAL -1)
- SET(wxWidgets_LIBRARIES ${wxWidgets_LIBRARIES}
- winmm
- comctl32
- rpcrt4
- wsock32
- )
+ LIST(APPEND wxWidgets_LIBRARIES winmm comctl32 rpcrt4 wsock32)
ENDMACRO(WX_SET_LIBRARIES)
#-------------------------------------------------------------------
@@ -451,7 +440,7 @@ IF(WIN32_STYLE_FIND)
FOREACH(CFG mswunivud mswunivd mswud mswd mswunivu mswuniv mswu msw)
SET(WX_${CFG}_FOUND FALSE)
IF(EXISTS ${WX_LIB_DIR}/${CFG})
- SET(WX_CONFIGURATION_LIST ${WX_CONFIGURATION_LIST} ${CFG})
+ LIST(APPEND WX_CONFIGURATION_LIST ${CFG})
SET(WX_${CFG}_FOUND TRUE)
SET(WX_CONFIGURATION ${CFG})
ENDIF(EXISTS ${WX_LIB_DIR}/${CFG})
@@ -498,7 +487,7 @@ IF(WIN32_STYLE_FIND)
# Set wxWidgets lib setup include directory.
IF(EXISTS ${WX_LIB_DIR}/${wxWidgets_CONFIGURATION}/wx/setup.h)
- SET(wxWidgets_INCLUDE_DIRS ${wxWidgets_INCLUDE_DIRS}
+ LIST(APPEND wxWidgets_INCLUDE_DIRS
${WX_LIB_DIR}/${wxWidgets_CONFIGURATION})
ELSE(EXISTS ${WX_LIB_DIR}/${wxWidgets_CONFIGURATION}/wx/setup.h)
DBG_MSG("WXWIDGET_FOUND FALSE because ${WX_LIB_DIR}/${wxWidgets_CONFIGURATION}/wx/setup.h does not exists.")