浏览代码

BUG: Fixed error related to missing quotes around variable.

Miguel A. Figueroa-Villanueva 18 年之前
父节点
当前提交
aa51ca2512
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      Modules/FindwxWidgets.cmake

+ 4 - 4
Modules/FindwxWidgets.cmake

@@ -549,15 +549,15 @@ ELSE(WIN32_STYLE_FIND)
 
         # parse definitions from cxxflags; drop -D* from CXXFLAGS
         STRING(REGEX MATCHALL "-D[^;]+"
-          wxWidgets_DEFINITIONS  ${wxWidgets_CXX_FLAGS})
+          wxWidgets_DEFINITIONS  "${wxWidgets_CXX_FLAGS}")
         STRING(REGEX REPLACE "-D[^;]+;" ""
-          wxWidgets_CXX_FLAGS ${wxWidgets_CXX_FLAGS})
+          wxWidgets_CXX_FLAGS "${wxWidgets_CXX_FLAGS}")
 
         # parse include dirs from cxxflags; drop -I prefix
         STRING(REGEX MATCHALL "-I[^;]+"
-          wxWidgets_INCLUDE_DIRS ${wxWidgets_CXX_FLAGS})
+          wxWidgets_INCLUDE_DIRS "${wxWidgets_CXX_FLAGS}")
         STRING(REGEX REPLACE "-I[^;]+;" ""
-          wxWidgets_CXX_FLAGS ${wxWidgets_CXX_FLAGS})
+          wxWidgets_CXX_FLAGS "${wxWidgets_CXX_FLAGS}")
         STRING(REPLACE "-I" ""
           wxWidgets_INCLUDE_DIRS "${wxWidgets_INCLUDE_DIRS}")