diff --git a/cmake/SearchForStuff.cmake b/cmake/SearchForStuff.cmake index 6b104f9f5d..53099225b5 100644 --- a/cmake/SearchForStuff.cmake +++ b/cmake/SearchForStuff.cmake @@ -167,7 +167,7 @@ if(wxWidgets_FOUND) if(Linux) # Force the use of 32 bit library configuration on # 64 bits machine with 32 bits library in /usr/lib32 - if(CMAKE_SIZEOF_VOID_P MATCHES "8" AND EXISTS "/usr/lib32") + if(CMAKE_SIZEOF_VOID_P MATCHES "8") if (EXISTS "/usr/lib32") # Debian/ubuntu. 64b in /usr/lib and 32b in /usr/lib32 STRING(REGEX REPLACE "/usr/lib/wx" "/usr/lib32/wx" wxWidgets_INCLUDE_DIRS "${wxWidgets_INCLUDE_DIRS}") @@ -178,7 +178,7 @@ if(wxWidgets_FOUND) # Fedora/Open suse. 64b in /usr/lib64 and 32b in /usr/lib STRING(REGEX REPLACE "/usr/lib64/wx" "/usr/lib/wx" wxWidgets_INCLUDE_DIRS "${wxWidgets_INCLUDE_DIRS}") endif (EXISTS "/usr/lib") - endif(CMAKE_SIZEOF_VOID_P MATCHES "8" AND EXISTS "/usr/lib32") + endif(CMAKE_SIZEOF_VOID_P MATCHES "8") endif(Linux) include(${wxWidgets_USE_FILE})