Skip to content

Commit

Permalink
Move block out of Windows check
Browse files Browse the repository at this point in the history
  • Loading branch information
j-rivero committed Aug 11, 2021
1 parent 534fd2d commit 0b05939
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions cmake/FindIgnOGRE.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,11 @@ else()
set(OGRE_LIBRARIES ${ogre_all_libs})
set(OGRE_RESOURCE_PATH ${OGRE_CONFIG_DIR})
endif()
endif()

set(IgnOGRE_FOUND false)
if(OGRE_FOUND)
set(IgnOGRE_FOUND true)

# manually search and append the the RenderSystem/GL path to
# OGRE_INCLUDE_DIRS so OGRE GL headers can be found
Expand All @@ -253,14 +258,7 @@ else()
list(APPEND OGRE_INCLUDE_DIRS ${dir_include})
endforeach()

endif()

set(IgnOGRE_FOUND false)
if(OGRE_FOUND)
set(IgnOGRE_FOUND true)

include(IgnImportTarget)

ign_import_target(IgnOGRE
TARGET_NAME IgnOGRE::IgnOGRE
LIB_VAR OGRE_LIBRARIES
Expand Down

0 comments on commit 0b05939

Please sign in to comment.