Skip to content

Commit

Permalink
🐛 Fixed OGRE plugins dir
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherFoxGuy committed Aug 20, 2021
1 parent 6c40812 commit 0bb9e61
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions source/main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,6 @@ if (USE_CURL)
endif ()

if (USE_CAELUM)
# set(CFG_OGRE_PLUGIN_CAELUM "Plugin=../libCaelum.so")
# set(CFG_OGRE_PLUGIN_CAELUM_D "Plugin=../libCaelum_d.so")
target_link_libraries(${BINNAME} PRIVATE Caelum::Caelum)
target_compile_definitions(${BINNAME} PRIVATE USE_CAELUM)
endif ()
Expand Down Expand Up @@ -452,14 +450,15 @@ endif ()
set(CFG_COMMENT_RENDERSYSTEM_D3D11 "# ")
set(CFG_COMMENT_RENDERSYSTEM_GL3PLUS "# ")


set(PLUGINS_FOLDER ".")

if (DEFINED OGRE_PLUGIN_DIR)
set(PLUGINS_FOLDER "${OGRE_PLUGIN_DIR}")
else ()
set(PLUGINS_FOLDER ".")
endif ()

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


# Copy resources to bin directory
# -----------------------
recursive_zip_folder("${CMAKE_SOURCE_DIR}/resources" "${RUNTIME_OUTPUT_DIRECTORY}/resources")
Expand Down

0 comments on commit 0bb9e61

Please # to comment.