commit ce8fe6c4bc3c587332f6c7862861dd29b53ae930
Author: Christian Ehringfeld <c.ehringfeld@t-online.de>
Date:   Mon Oct 5 22:29:46 2015 +0200

    fix

diff --git a/EntityManager.pro b/EntityManager.pro
index 05f4093..9623ad3 100644
--- a/EntityManager.pro
+++ b/EntityManager.pro
@@ -7,6 +7,8 @@ QT       -= gui
 
 TARGET = CuteEntityManager
 TEMPLATE = lib
+CONFIG += $$EM_LIBRARY_TYPE
+VERSION = $$EM_VERSION
 
 HEADERS += \
 src/entity.h \
@@ -110,13 +112,6 @@ QMAKE_CXXFLAGS += -Wall -Wextra -Wunsafe-loop-optimizations -pedantic -Wfloat-eq
 #target.path = $$PREFIX/$$LIBDIR
 #INSTALLS += target
 
-unix {
-    QMAKE_CXXFLAGS += -Wunsafe-loop-optimizations -pedantic -Wfloat-equal -Wundef -Wpointer-arith -Wcast-align -Wunreachable-code
-    #linux-g++5 {
-    #QMAKE_CXXFLAGS += -Wsuggest-final-types -Wsuggest-final-methods -Wsuggest-override -Wmaybe-uninitialized
-    #}
-}
-
 CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG_OUTPUT
 
 DISTFILES += \
diff --git a/src/relation.h b/src/relation.h
index 6a88317..f8ebebf 100644
--- a/src/relation.h
+++ b/src/relation.h
@@ -51,7 +51,7 @@ class Relation {
      */
     explicit Relation(QString propertyName, RelationType type,
                       QString mappedBy = QString(),
-                      QList<CascadeType> cascadeType = {CascadeType::MERGE, CascadeType::PERSIST, CascadeType::REFRESH});
+                      QList<CascadeType> cascadeType = QList<CascadeType>{CascadeType::MERGE, CascadeType::PERSIST, CascadeType::REFRESH});
     ~Relation();
     RelationType getType() const;
     void setType(const RelationType &value);
