add_library(fruit
demangle_type_name.cpp
component_storage.cpp
injector_storage.cpp
normalized_component_storage.cpp
semistatic_map.cpp
)
if(${UNIX} AND NOT ${APPLE})
    target_link_libraries(fruit supc++)
endif()

if(${BUILD_SHARED_LIBS})
    install(TARGETS fruit
        LIBRARY DESTINATION ${INSTALL_LIBRARY_DIR})
else()
    install(TARGETS fruit
        ARCHIVE DESTINATION ${INSTALL_LIBRARY_DIR})
endif()

add_library(fruit
demangle_type_name.cpp
component_storage.cpp
injector_storage.cpp
normalized_component_storage.cpp
semistatic_map.cpp
)
if(UNIX AND NOT APPLE)
    target_link_libraries(fruit supc++)
endif()

if(${BUILD_SHARED_LIBS})
    install(TARGETS fruit
        LIBRARY DESTINATION ${INSTALL_LIBRARY_DIR})
else()
    install(TARGETS fruit
        ARCHIVE DESTINATION ${INSTALL_LIBRARY_DIR})
endif()

Remove ${} from arguments to a CMake if to avoid expansion problems. The extra ${}s were causing build failures on Linux when using Clang and libc++.
Remove ${} from arguments to a CMake if to avoid expansion problems.
The extra ${}s were causing build failures on Linux when using Clang and libc++.
