Skip to content

Commit

Permalink
Added option to specify gbi (Kenix3#619)
Browse files Browse the repository at this point in the history
  • Loading branch information
KiritoDv authored Jun 16, 2024
1 parent 9907ebf commit 5849d3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ set(EXCLUDE_MPQ_SUPPORT FALSE CACHE BOOL "Exclude StormLib and MPQ archive suppo
if(EXCLUDE_MPQ_SUPPORT)
add_compile_definitions(EXCLUDE_MPQ_SUPPORT)
endif()
option(USE_F3DEX2 "Use F3DEX_GBI_2" OFF)
option(GBI_UCODE "Specify the GBI ucode version" F3DEX_GBI_2)

# =========== Dependencies =============
include(cmake/dependencies/common.cmake)
Expand Down
4 changes: 1 addition & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,7 @@ endif()

#=================== Compile Options & Defs ===================

if(USE_F3DEX2)
target_compile_definitions(libultraship PRIVATE F3DEX_GBI_2)
endif()
target_compile_definitions(libultraship PRIVATE ${GBI_UCODE})

if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
target_compile_definitions(${PROJECT_NAME} PRIVATE
Expand Down

0 comments on commit 5849d3a

Please sign in to comment.