message: Fix name-clash bug using STREQUAL
diff: @@ -206,39 +206,39 @@ ENDMACRO()
  # Helper function to return arguments of OSPRAY_CREATE_ in separate
  # variables, prefixed with PREFIX
  FUNCTION(OSPRAY_SPLIT_CREATE_ARGS PREFIX)
  - SET(SOURCES "")
  + SET(MY_SOURCES "")
  SET(LIBS "")
  - SET(EXCLUDE_FROM_ALL FALSE)
  - SET(COMPONENT ${OSPRAY_DEFAULT_COMPONENT})
  - SET(CURRENT_LIST SOURCES)
  + SET(MY_EXCLUDE_FROM_ALL FALSE)
  + SET(MY_COMPONENT ${OSPRAY_DEFAULT_COMPONENT})
  + SET(CURRENT_LIST MY_SOURCES)
  FOREACH(arg ${ARGN})
  - IF (${arg} STREQUAL "LINK")
  + IF ("${arg}" STREQUAL "LINK")
  SET(CURRENT_LIST LIBS)
  - ELSEIF (${arg} STREQUAL "EXCLUDE_FROM_ALL")
  - SET(EXCLUDE_FROM_ALL TRUE)
  - ELSEIF (${arg} STREQUAL "COMPONENT")
  - SET(CURRENT_LIST COMPONENT)
  + ELSEIF ("${arg}" STREQUAL "EXCLUDE_FROM_ALL")
  + SET(MY_EXCLUDE_FROM_ALL TRUE)
  + ELSEIF ("${arg}" STREQUAL "COMPONENT")
  + SET(CURRENT_LIST MY_COMPONENT)
  ELSE()
  LIST(APPEND ${CURRENT_LIST} ${arg})
  ENDIF ()
  ENDFOREACH()
  # COMPONENT only required when installed
  - IF (NOT ${EXCLUDE_FROM_ALL})
  - LIST(LENGTH COMPONENT COMPONENTS)
  + IF (NOT ${MY_EXCLUDE_FROM_ALL})
  + LIST(LENGTH MY_COMPONENT COMPONENTS)
  IF (COMPONENTS EQUAL 0)
  MESSAGE(WARNING "No COMPONENT for installation specified!")
  - SET(COMPONENT ${CMAKE_INSTALL_DEFAULT_COMPONENT_NAME})
  + SET(MY_COMPONENT ${CMAKE_INSTALL_DEFAULT_COMPONENT_NAME})
  ELSE()
  - LIST(GET COMPONENT -1 COMPONENT)
  + LIST(GET MY_COMPONENT -1 MY_COMPONENT)
  ENDIF()
  ENDIF()
  - SET(${PREFIX}_SOURCES ${SOURCES} PARENT_SCOPE)
  + SET(${PREFIX}_SOURCES ${MY_SOURCES} PARENT_SCOPE)
  SET(${PREFIX}_LIBS ${LIBS} PARENT_SCOPE)
  - SET(${PREFIX}_EXCLUDE_FROM_ALL ${EXCLUDE_FROM_ALL} PARENT_SCOPE)
  - SET(${PREFIX}_COMPONENT ${COMPONENT} PARENT_SCOPE)
  + SET(${PREFIX}_EXCLUDE_FROM_ALL ${MY_EXCLUDE_FROM_ALL} PARENT_SCOPE)
  + SET(${PREFIX}_COMPONENT ${MY_COMPONENT} PARENT_SCOPE)
  ENDFUNCTION()
  ## Conveniance macro for creating OSPRay libraries ##
  @@ -328,19 +328,19 @@ ENDMACRO()
  MACRO(OSPRAY_INSTALL_SDK_HEADERS)
  SET(HEADERS "")
  - SET(DESTINATION "")
  + SET(MY_DESTINATION "")
  SET(CURRENT_LIST HEADERS)
  FOREACH(arg ${ARGN})
  - IF (${arg} STREQUAL "DESTINATION")
  - SET(CURRENT_LIST DESTINATION)
  + IF ("${arg}" STREQUAL "DESTINATION")
  + SET(CURRENT_LIST MY_DESTINATION)
  ELSE()
  LIST(APPEND ${CURRENT_LIST} ${arg})
  ENDIF ()
  ENDFOREACH()
  INSTALL(FILES ${HEADERS}
  - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/ospray/SDK/${DESTINATION}
  + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/ospray/SDK/${MY_DESTINATION}
  COMPONENT devel
  )
  ENDMACRO()
  