Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(cmake): fix for cmake recast-demo build - add libraries #706

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

uk-mark-bentley
Copy link

cmake was not building the recast-demo because it could not link the libraries

The following libraries have been added: DebugUtils, Recast, Detour, DetourCrowd, DetourTileCache

This has only been tested on Ubuntu.

@elsid
Copy link
Contributor

elsid commented May 27, 2024

What's the original issue? Could you post the build log? FYI there is working CI job building RecastDemo on Ubuntu. So likely there is an issue unrelated to the CMake config in this repository.

Comment on lines +37 to +50
file(GLOB DEBUG_UTILS_SRC "${CMAKE_CURRENT_SOURCE_DIR}/../DebugUtils/Source/*.cpp")
add_library(DebugUtils SHARED ${DEBUG_UTILS_SRC})

file(GLOB RECAST_SRC "${CMAKE_CURRENT_SOURCE_DIR}/../Recast/Source/*.cpp")
add_library(Recast SHARED ${RECAST_SRC})

file(GLOB RECAST_DETOUR_SRC "${CMAKE_CURRENT_SOURCE_DIR}/../Detour/Source/*.cpp")
add_library(Detour SHARED ${RECAST_DETOUR_SRC})

file(GLOB RECAST_DETOUR_CROWD_SRC "${CMAKE_CURRENT_SOURCE_DIR}/../DetourCrowd/Source/*.cpp")
add_library(DetourCrowd SHARED ${RECAST_DETOUR_CROWD_SRC})

file(GLOB RECAST_DETOUR_TILE_CACHE_SRC "${CMAKE_CURRENT_SOURCE_DIR}/../DetourTileCache/Source/*.cpp")
add_library(DetourTileCache SHARED ${RECAST_DETOUR_TILE_CACHE_SRC})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This adds duplicated definitions for libraries built in other places:

This is not what should be done here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants