Skip to content

Commit

Permalink
Slightly rewrite examples/find_package_components/CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarbier committed Sep 16, 2011
1 parent 37724c9 commit 28e908c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions examples/find_package_components/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ set(OCE_TOOLKITS TKPrim)
find_package(OCE COMPONENTS ${OCE_TOOLKITS})
if(OCE_FOUND)
message(STATUS "Found OCE version ${OCE_VERSION}")
foreach(toolkit ${OCE_TOOLKITS})
if(NOT OCE_${toolkit}_FOUND)
set(OCE_FOUND false)
message(WARNING "OCE toolkit ${toolkit} not found, ignoring OCE installation")
endif(NOT OCE_${toolkit}_FOUND)
endforeach(toolkit ${OCE_TOOLKITS})
if(NOT OCE_ALL_FOUND)
set(OCE_FOUND false)
message(WARNING "Ignoring OCE installation due to missing toolkit(s): ${OCE_MISSING_TOOLKITS}")
endif(NOT OCE_ALL_FOUND)
endif(OCE_FOUND)

if(OCE_FOUND)
Expand Down

0 comments on commit 28e908c

Please sign in to comment.