Patch for boost import

This commit is contained in:
JackCarterSmith 2022-09-18 17:50:24 +02:00
parent bb4cafd680
commit 167b8b3f27
Signed by: JackCarterSmith
GPG Key ID: 832E52F4E23F8F24
3 changed files with 8 additions and 5 deletions

View File

@ -24,6 +24,7 @@ find_package(RSPTexture 2.1 REQUIRED)
include_directories(${RSPTexture_INCLUDE_DIR})
find_package(Boost 1.80.0 EXACT REQUIRED)
include_directories(${Boost_INCLUDE_DIR})
add_definitions(-DBOOST_ALL_NO_LIB)
# Project definition
@ -114,9 +115,9 @@ if(RDI_STATIC)
target_include_directories(rdi-libstatic PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
target_link_libraries(rdi-libstatic PRIVATE
${RSPModel_LIBRARIES}
${RSPTerrain_LIBRARIES}
${RSPTexture_LIBRARIES}
${RSPModel_LIBRARIES}
${RSPTerrain_LIBRARIES}
${RSPTexture_LIBRARIES}
${Boost_LIBRARIES}
)
@ -154,7 +155,7 @@ if(BUILD_TOOLS)
add_executable(rdi-debug-tools ${RDI_TOOLS_SOURCES})
set_property(TARGET rdi-debug-tools PROPERTY C_STANDARD 90)
set_target_properties(rdi-debug-tools PROPERTIES OUTPUT_NAME "RDI-debug")
set(RDI_TARGETS_LIST rdi-debug-tools)
list(APPEND RDI_TARGETS_LIST rdi-debug-tools)
if(MSVC)

View File

@ -9,6 +9,8 @@ cmake
cmake_find_package
[options]
boost:zlib=False
boost:bzip2=False
[imports]
bin, *.dll -> ./bin

View File

@ -22,7 +22,7 @@ namespace RDI {
std::string workingDir = ".";
unsigned char cDatSection = 0;
std::vector<struct dataSection> *pDatSection;
std::vector<struct dataSection> *pDatSection = nullptr;
MEMFILE rDatPtr = nullptr;
public: