Skip to content

Commit

Permalink
🐛 Fixed broken Caelum package
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherFoxGuy committed Oct 6, 2021
1 parent 3612474 commit 5ca2eba
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-game.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Cache conan
uses: actions/cache@v2.1.6
with:
key: conan-root-${{ hashFiles('cmake/DependenciesConfig.cmake') }}
key: conan-${{ hashFiles('cmake/DependenciesConfig.cmake') }}
path: ~/.conan/

- name: Install dependencies
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
- name: Cache conan packages
uses: actions/cache@v2.1.6
with:
key: conan-root-${{ hashFiles('cmake/DependenciesConfig.cmake') }}
key: conan-${{ hashFiles('cmake/DependenciesConfig.cmake') }}
path: ~/.conan

- name: Enable Developer Command Prompt
Expand Down
3 changes: 2 additions & 1 deletion cmake/DependenciesConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ add_external_lib(

add_external_lib(
Caelum
ogre3d-caelum/0.6.3@anotherfoxguy/stable
# Temporary switch back to the rigs of rods version, since the OGRE version is broken
ogre3d-caelum/0.6.3@rigs-of-rods/stable
# PKG_CONFIG "Caelum >= 0.6.3"
CONAN_PKG_NAME Caelum
FIND_PACKAGE
Expand Down
14 changes: 11 additions & 3 deletions source/main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -461,9 +461,17 @@ else ()
set(PLUGINS_FOLDER ".")
endif ()

if (${_PREFIX}USE_CAELUM STREQUAL "SYSTEM")
set(CFG_OGRE_PLUGIN_CAELUM "Plugin=../libCaelum.so")
set(CFG_OGRE_PLUGIN_CAELUM_D "Plugin=../libCaelum_d.so")
if (WIN32)
set(CFG_OGRE_PLUGIN_CAELUM "Plugin=Caelum")
set(CFG_OGRE_PLUGIN_CAELUM_D "Plugin=Caelum")
else ()
if (${_PREFIX}USE_CAELUM STREQUAL "SYSTEM")
set(CFG_OGRE_PLUGIN_CAELUM "Plugin=../libCaelum.so")
set(CFG_OGRE_PLUGIN_CAELUM_D "Plugin=../libCaelum_d.so")
else ()
set(CFG_OGRE_PLUGIN_CAELUM "Plugin=libCaelum.so")
set(CFG_OGRE_PLUGIN_CAELUM_D "Plugin=libCaelum_d.so")
endif ()
endif ()

configure_file(plugins.cfg.in ${RUNTIME_OUTPUT_DIRECTORY}/plugins.cfg)
Expand Down

0 comments on commit 5ca2eba

Please # to comment.