-
Notifications
You must be signed in to change notification settings - Fork 31
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
Fix problems on IgnOGRE when version is not found #175
Changes from all commits
d09e904
534fd2d
0b05939
a825b15
a655a90
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -238,28 +238,27 @@ else() | |
endif() | ||
endif() | ||
|
||
# manually search and append the the RenderSystem/GL path to | ||
# OGRE_INCLUDE_DIRS so OGRE GL headers can be found | ||
foreach (dir ${OGRE_INCLUDE_DIRS}) | ||
get_filename_component(dir_name "${dir}" NAME) | ||
if("${dir_name}" STREQUAL "OGRE") | ||
if(${OGRE_VERSION} VERSION_LESS 1.11.0) | ||
set(dir_include "${dir}/RenderSystems/GL") | ||
else() | ||
set(dir_include "${dir}/RenderSystems/GL" "${dir}/Paging") | ||
endif() | ||
else() | ||
set(dir_include "${dir}") | ||
endif() | ||
list(APPEND OGRE_INCLUDE_DIRS ${dir_include}) | ||
endforeach() | ||
|
||
set(IgnOGRE_FOUND false) | ||
if(OGRE_FOUND) | ||
set(IgnOGRE_FOUND true) | ||
|
||
include(IgnImportTarget) | ||
# manually search and append the the RenderSystem/GL path to | ||
# OGRE_INCLUDE_DIRS so OGRE GL headers can be found | ||
foreach(dir ${OGRE_INCLUDE_DIRS}) | ||
get_filename_component(dir_name "${dir}" NAME) | ||
if("${dir_name}" STREQUAL "OGRE") | ||
if(${OGRE_VERSION} VERSION_LESS 1.11.0) | ||
set(dir_include "${dir}/RenderSystems/GL") | ||
else() | ||
set(dir_include "${dir}/RenderSystems/GL" "${dir}/Paging") | ||
endif() | ||
else() | ||
set(dir_include "${dir}") | ||
endif() | ||
list(APPEND OGRE_INCLUDE_DIRS ${dir_include}) | ||
endforeach() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. looks like this block of code is now moved to to the Windows section (instead of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ouch, good catch! 0b05939 |
||
|
||
include(IgnImportTarget) | ||
ign_import_target(IgnOGRE | ||
TARGET_NAME IgnOGRE::IgnOGRE | ||
LIB_VAR OGRE_LIBRARIES | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we planning to make an
ign-cmake
release once this PR is merged?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might need to since seems to be causing problems on current CI. See gazebosim/gz-rendering#376 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leaving here by now. Going to merge to solve problems on CI.