Fixed memory header incude and added -fPIC flag for SDK compilation #199
@@ -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)
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#define LIVOX_THREAD_BASE_H_
|
||||
#include <atomic>
|
||||
#include <thread>
|
||||
#include <memory>
|
||||
#include "noncopyable.h"
|
||||
|
||||
namespace livox {
|
||||
|
||||
Reference in New Issue
Block a user