瀏覽代碼

build 0.1.4 release on arch

Thomas Buck 6 月之前
父節點
當前提交
ea7dbce8b9
共有 3 個檔案被更改,包括 3 行新增2 行删除
  1. 1
    1
      CMakeLists.txt
  2. 1
    1
      include/Log.h
  3. 1
    0
      src/utils/Folder.cpp

+ 1
- 1
CMakeLists.txt 查看文件

@@ -53,7 +53,7 @@ elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
53 53
 endif()
54 54
 
55 55
 # Flags for all builds
56
-set (OpenRaider_CXX_FLAGS "${OpenRaider_CXX_FLAGS} ${WARNINGS}")
56
+set (OpenRaider_CXX_FLAGS "${OpenRaider_CXX_FLAGS} ${WARNINGS} -DGL_GLEXT_PROTOTYPES -DGLM_ENABLE_EXPERIMENTAL")
57 57
 
58 58
 # Flags for Debug build
59 59
 set (OpenRaider_CXX_FLAGS_DEBUG "${OpenRaider_CXX_FLAGS_DEBUG} -DDEBUG")

+ 1
- 1
include/Log.h 查看文件

@@ -64,7 +64,7 @@ class LogLevel {
64 64
     template<typename T>
65 65
     LogLevel& operator<< (const T t) {
66 66
         printBuffer << t;
67
-        if (printBuffer.str().back() == Log::endl) {
67
+        if ((printBuffer.str().length() > 0) && (printBuffer.str().back() == Log::endl)) {
68 68
             std::string s = printBuffer.str().substr(0, printBuffer.str().length() - 1);
69 69
             printBuffer.str("");
70 70
             Log::wholeLog.emplace_back(s, level);

+ 1
- 0
src/utils/Folder.cpp 查看文件

@@ -7,6 +7,7 @@
7 7
 
8 8
 #include <algorithm>
9 9
 #include <iostream>
10
+#include <cstring>
10 11
 
11 12
 #include "global.h"
12 13
 #include <Log.h>

Loading…
取消
儲存