Fixed memory header incude and added -fPIC flag for SDK compilation #199

Open
paureverte wants to merge 2 commits from paureverte/master into master
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -27,6 +27,7 @@ else(WIN32)
endif (WIN32)
target_compile_options(${SDK_LIBRARY}
PRIVATE $<$<CXX_COMPILER_ID:GNU>:-Wno-missing-field-initializers -fPIC>
PRIVATE $<$<CXX_COMPILER_ID:GNU>:-Wall -Werror -Wno-c++11-long-long>
PRIVATE $<$<CXX_COMPILER_ID:AppleClang>:-Wno-unknown-pragmas -Wall -Werror -Wno-c++11-long-long>
PRIVATE $<$<CXX_COMPILER_ID:Clang>:-Wno-unknown-pragmas -Wall -Werror -Wno-c++11-long-long>)
@@ -88,4 +89,4 @@ target_sources(${SDK_LIBRARY}
install(TARGETS ${SDK_LIBRARY}
PUBLIC_HEADER DESTINATION include
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib)
LIBRARY DESTINATION lib)
+1
View File
@@ -26,6 +26,7 @@
#define LIVOX_THREAD_BASE_H_
#include <atomic>
#include <thread>
#include <memory>
#include "noncopyable.h"
namespace livox {