Skip to content

Commit

Permalink
allow OGRE_PLUGIN_PATH to be defined at cmake config time (ros-visual…
Browse files Browse the repository at this point in the history
  • Loading branch information
cratliff authored and rhaschke committed Mar 7, 2019
1 parent 7af4c17 commit 3a41f37
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,13 @@ if(NOT OGRE_OV_FOUND)
endif(NOT OGRE_OV_FOUND)

## Find OGRE Plugin path (not necessarily platform-independent, I guess)
execute_process(COMMAND
${PKG_CONFIG_EXECUTABLE} --variable=plugindir OGRE
OUTPUT_VARIABLE OGRE_PLUGIN_PATH
OUTPUT_STRIP_TRAILING_WHITESPACE
)
if(NOT DEFINED OGRE_PLUGIN_PATH)
execute_process(COMMAND
${PKG_CONFIG_EXECUTABLE} --variable=plugindir OGRE
OUTPUT_VARIABLE OGRE_PLUGIN_PATH
OUTPUT_STRIP_TRAILING_WHITESPACE
)
endif(NOT DEFINED OGRE_PLUGIN_PATH)
message(STATUS OGRE_PLUGIN_PATH=${OGRE_PLUGIN_PATH})

# find absolute path of ogre libraries.
Expand Down

0 comments on commit 3a41f37

Please sign in to comment.