Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Slightly rewrite examples/find_package_components/CMakeLists.txt

  • Loading branch information...
commit 28e908c7885e790a2d5f190f6836a5c92702b759 1 parent 37724c9
Denis Barbier dbarbier authored
Showing with 4 additions and 6 deletions.
  1. +4 −6 examples/find_package_components/CMakeLists.txt
10 examples/find_package_components/CMakeLists.txt
View
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.