Browse Source

build 0.1.4 release on arch

Thomas Buck 6 months ago
parent
commit
ea7dbce8b9
3 changed files with 3 additions and 2 deletions
  1. 1
    1
      CMakeLists.txt
  2. 1
    1
      include/Log.h
  3. 1
    0
      src/utils/Folder.cpp

+ 1
- 1
CMakeLists.txt View File

53
 endif()
53
 endif()
54
 
54
 
55
 # Flags for all builds
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
 # Flags for Debug build
58
 # Flags for Debug build
59
 set (OpenRaider_CXX_FLAGS_DEBUG "${OpenRaider_CXX_FLAGS_DEBUG} -DDEBUG")
59
 set (OpenRaider_CXX_FLAGS_DEBUG "${OpenRaider_CXX_FLAGS_DEBUG} -DDEBUG")

+ 1
- 1
include/Log.h View File

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

+ 1
- 0
src/utils/Folder.cpp View File

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

Loading…
Cancel
Save