[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [smokeqt/smokev4] /: Added -mstackrealign on Windows only when the compiler is GNU.
From:       Arno Rehn <arno () arnorehn ! de>
Date:       2012-11-28 19:15:30
Message-ID: 20121128191530.BFC10A60C4 () git ! kde ! org
[Download RAW message or body]

Git commit b17df3cc0acf6441d9a3ac2995d5b2f0ce5dc8b8 by Arno Rehn, on behalf=
 of Dimitar Dobrev.
Committed on 21/11/2012 at 19:53.
Pushed by arnorehn into branch 'smokev4'.

Added -mstackrealign on Windows only when the compiler is GNU.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>

M  +3    -1    phonon/CMakeLists.txt
M  +3    -1    qimageblitz/CMakeLists.txt
M  +3    -1    qsci/CMakeLists.txt
M  +3    -1    qt3support/CMakeLists.txt
M  +3    -1    qtcore/CMakeLists.txt
M  +3    -1    qtcore/tests/CMakeLists.txt
M  +3    -1    qtdbus/CMakeLists.txt
M  +3    -1    qtdeclarative/CMakeLists.txt
M  +3    -1    qtgui/CMakeLists.txt
M  +3    -1    qthelp/CMakeLists.txt
M  +3    -1    qtmultimedia/CMakeLists.txt
M  +3    -1    qtnetwork/CMakeLists.txt
M  +3    -1    qtopengl/CMakeLists.txt
M  +3    -1    qtscript/CMakeLists.txt
M  +3    -1    qtsql/CMakeLists.txt
M  +3    -1    qtsvg/CMakeLists.txt
M  +3    -1    qttest/CMakeLists.txt
M  +3    -1    qtuitools/CMakeLists.txt
M  +3    -1    qtwebkit/CMakeLists.txt
M  +3    -1    qtxml/CMakeLists.txt
M  +3    -1    qtxmlpatterns/CMakeLists.txt
M  +3    -1    qwt/CMakeLists.txt

http://commits.kde.org/smokeqt/b17df3cc0acf6441d9a3ac2995d5b2f0ce5dc8b8

diff --git a/phonon/CMakeLists.txt b/phonon/CMakeLists.txt
index 683b2d6..830612f 100644
--- a/phonon/CMakeLists.txt
+++ b/phonon/CMakeLists.txt
@@ -55,7 +55,9 @@ install(TARGETS smokephonon LIBRARY DESTINATION ${LIB_INS=
TALL_DIR}
     RUNTIME DESTINATION bin)
 if (WIN32)
 	# Realign the stack, for compatibility with an older ABI.
-	set_target_properties (smokephonon PROPERTIES COMPILE_FLAGS -mstackrealig=
n)
+	if(CMAKE_COMPILER_IS_GNUCXX)
+		set_target_properties(smokephonon PROPERTIES COMPILE_FLAGS -mstackrealig=
n)
+	endif()
 =

     # Get rid of the "lib" prefix on archives/DLLs in Windows.
     set_target_properties(smokephonon PROPERTIES PREFIX "" IMPORT_PREFIX "=
")
diff --git a/qimageblitz/CMakeLists.txt b/qimageblitz/CMakeLists.txt
index f723cac..dbc7ed6 100644
--- a/qimageblitz/CMakeLists.txt
+++ b/qimageblitz/CMakeLists.txt
@@ -35,7 +35,9 @@ install(TARGETS smokeqimageblitz
     RUNTIME DESTINATION bin)
 if (WIN32)
 	# Realign the stack, for compatibility with an older ABI.
-	set_target_properties (smokeqimageblitz PROPERTIES COMPILE_FLAGS -mstackr=
ealign)
+	if(CMAKE_COMPILER_IS_GNUCXX)
+		set_target_properties(smokeqimageblitz PROPERTIES COMPILE_FLAGS -mstackr=
ealign)
+	endif()
 =

     # Get rid of the "lib" prefix on archives/DLLs in Windows.
     set_target_properties(smokeqimageblitz PROPERTIES PREFIX "" IMPORT_PRE=
FIX "")
diff --git a/qsci/CMakeLists.txt b/qsci/CMakeLists.txt
index 8fd739e..eeb4360 100644
--- a/qsci/CMakeLists.txt
+++ b/qsci/CMakeLists.txt
@@ -50,7 +50,9 @@ install(TARGETS smokeqsci LIBRARY DESTINATION ${LIB_INSTA=
LL_DIR}
     RUNTIME DESTINATION bin)
 if (WIN32)
 	# Realign the stack, for compatibility with an older ABI.
-	set_target_properties (smokeqsci PROPERTIES COMPILE_FLAGS -mstackrealign)
+	if(CMAKE_COMPILER_IS_GNUCXX)
+		set_target_properties(smokegen PROPERTIES COMPILE_FLAGS -mstackrealign)
+	endif()
 =

     # Get rid of the "lib" prefix on archives/DLLs in Windows.
     set_target_properties(smokeqsci PROPERTIES PREFIX "" IMPORT_PREFIX "")
diff --git a/qt3support/CMakeLists.txt b/qt3support/CMakeLists.txt
index 1f28b63..6c196d9 100644
--- a/qt3support/CMakeLists.txt
+++ b/qt3support/CMakeLists.txt
@@ -91,7 +91,9 @@ install(TARGETS smokeqt3support
 =

 if (WIN32)
 	# Realign the stack, for compatibility with an older ABI.
-	set_target_properties (smokeqt3support PROPERTIES COMPILE_FLAGS -mstackre=
align)
+	if(CMAKE_COMPILER_IS_GNUCXX)
+		set_target_properties(smokeqt3support PROPERTIES COMPILE_FLAGS -mstackre=
align)
+	endif()
 =

 	# Get rid of the "lib" prefix on archives/DLLs in Windows.
     set_target_properties(smokeqt3support
diff --git a/qtcore/CMakeLists.txt b/qtcore/CMakeLists.txt
index 18a9dcd..3653482 100644
--- a/qtcore/CMakeLists.txt
+++ b/qtcore/CMakeLists.txt
@@ -87,7 +87,9 @@ install(TARGETS smokeqtcore LIBRARY DESTINATION ${LIB_INS=
TALL_DIR}
 =

 if (WIN32)
 	# Realign the stack, for compatibility with an older ABI.
-	set_target_properties (smokeqtcore PROPERTIES COMPILE_FLAGS -mstackrealig=
n)
+	if(CMAKE_COMPILER_IS_GNUCXX)
+		set_target_properties(smokeqtcore PROPERTIES COMPILE_FLAGS -mstackrealig=
n)
+	endif()
 =

     # Get rid of the "lib" prefix on archives/DLLs in Windows.
     set_target_properties(smokeqtcore
diff --git a/qtcore/tests/CMakeLists.txt b/qtcore/tests/CMakeLists.txt
index 51d1db3..73b2adc 100644
--- a/qtcore/tests/CMakeLists.txt
+++ b/qtcore/tests/CMakeLists.txt
@@ -13,7 +13,9 @@ add_executable( target_test test.cpp )
 =

 if (WIN32)
 	# Realign the stack, for compatibility with an older ABI.
-	set_target_properties (target_test PROPERTIES COMPILE_FLAGS -mstackrealig=
n)
+	if(CMAKE_COMPILER_IS_GNUCXX)
+		set_target_properties(target_test PROPERTIES COMPILE_FLAGS -mstackrealig=
n)
+	endif()
 endif (WIN32)
 =

 target_link_libraries( target_test ${QT_LIBRARIES} )
diff --git a/qtdbus/CMakeLists.txt b/qtdbus/CMakeLists.txt
index 8d7f236..4664e86 100644
--- a/qtdbus/CMakeLists.txt
+++ b/qtdbus/CMakeLists.txt
@@ -39,7 +39,9 @@ install(TARGETS smokeqtdbus LIBRARY DESTINATION ${LIB_INS=
TALL_DIR}
 =

 if (WIN32)
 	# Realign the stack, for compatibility with an older ABI.
-	set_target_properties (smokeqtdbus PROPERTIES COMPILE_FLAGS -mstackrealig=
n)
+	if(CMAKE_COMPILER_IS_GNUCXX)
+		set_target_properties(smokeqtdbus PROPERTIES COMPILE_FLAGS -mstackrealig=
n)
+	endif()
 =

     # Get rid of the "lib" prefix on archives/DLLs in Windows.
     set_target_properties(smokeqtdbus
diff --git a/qtdeclarative/CMakeLists.txt b/qtdeclarative/CMakeLists.txt
index ae35767..90a4d07 100644
--- a/qtdeclarative/CMakeLists.txt
+++ b/qtdeclarative/CMakeLists.txt
@@ -47,7 +47,9 @@ install(TARGETS smokeqtdeclarative
 =

 if (WIN32)
 	# Realign the stack, for compatibility with an older ABI.
-	set_target_properties (smokeqtdeclarative PROPERTIES COMPILE_FLAGS -mstac=
krealign)
+	if(CMAKE_COMPILER_IS_GNUCXX)
+		set_target_properties(smokeqtdeclarative PROPERTIES COMPILE_FLAGS -mstac=
krealign)
+	endif()
 =

     # Get rid of the "lib" prefix on archives/DLLs in Windows.
     set_target_properties(smokeqtdeclarative
diff --git a/qtgui/CMakeLists.txt b/qtgui/CMakeLists.txt
index e5f3625..2947690 100644
--- a/qtgui/CMakeLists.txt
+++ b/qtgui/CMakeLists.txt
@@ -77,7 +77,9 @@ install(TARGETS smokeqtgui LIBRARY DESTINATION ${LIB_INST=
ALL_DIR}
 =

 if (WIN32)
 	# Realign the stack, for compatibility with an older ABI.
-	set_target_properties (smokeqtgui PROPERTIES COMPILE_FLAGS -mstackrealign)
+	if(CMAKE_COMPILER_IS_GNUCXX)
+		set_target_properties(smokeqtgui PROPERTIES COMPILE_FLAGS -mstackrealign)
+	endif()
 =

     # Get rid of the "lib" prefix on archives/DLLs in Windows.
     set_target_properties(smokeqtgui
diff --git a/qthelp/CMakeLists.txt b/qthelp/CMakeLists.txt
index d6318b5..3eebca9 100644
--- a/qthelp/CMakeLists.txt
+++ b/qthelp/CMakeLists.txt
@@ -46,7 +46,9 @@ install(TARGETS smokeqthelp LIBRARY DESTINATION ${LIB_INS=
TALL_DIR}
 =

 if (WIN32)
 	# Realign the stack, for compatibility with an older ABI.
-	set_target_properties (smokeqthelp PROPERTIES COMPILE_FLAGS -mstackrealig=
n)
+	if(CMAKE_COMPILER_IS_GNUCXX)
+		set_target_properties(smokeqthelp PROPERTIES COMPILE_FLAGS -mstackrealig=
n)
+	endif()
 =

     # Get rid of the "lib" prefix on archives/DLLs in Windows.
     set_target_properties(smokeqthelp
diff --git a/qtmultimedia/CMakeLists.txt b/qtmultimedia/CMakeLists.txt
index 0b19520..19cc458 100644
--- a/qtmultimedia/CMakeLists.txt
+++ b/qtmultimedia/CMakeLists.txt
@@ -44,7 +44,9 @@ install(TARGETS smokeqtmultimedia
 =

 if (WIN32)
 	# Realign the stack, for compatibility with an older ABI.
-	set_target_properties (smokeqtmultimedia PROPERTIES COMPILE_FLAGS -mstack=
realign)
+	if(CMAKE_COMPILER_IS_GNUCXX)
+		set_target_properties(smokeqtmultimedia PROPERTIES COMPILE_FLAGS -mstack=
realign)
+	endif()
 =

     # Get rid of the "lib" prefix on archives/DLLs in Windows.
     set_target_properties(smokeqtmultimedia
diff --git a/qtnetwork/CMakeLists.txt b/qtnetwork/CMakeLists.txt
index 7c7675b..33f9c0f 100644
--- a/qtnetwork/CMakeLists.txt
+++ b/qtnetwork/CMakeLists.txt
@@ -40,7 +40,9 @@ install(TARGETS smokeqtnetwork
 =

 if (WIN32)
 	# Realign the stack, for compatibility with an older ABI.
-	set_target_properties (smokeqtnetwork PROPERTIES COMPILE_FLAGS -mstackrea=
lign)
+	if(CMAKE_COMPILER_IS_GNUCXX)
+		set_target_properties(smokeqtnetwork PROPERTIES COMPILE_FLAGS -mstackrea=
lign)
+	endif()
 =

     # Get rid of the "lib" prefix on archives/DLLs in Windows.
     set_target_properties(smokeqtnetwork
diff --git a/qtopengl/CMakeLists.txt b/qtopengl/CMakeLists.txt
index 0273d74..5d9dd68 100644
--- a/qtopengl/CMakeLists.txt
+++ b/qtopengl/CMakeLists.txt
@@ -43,7 +43,9 @@ install(TARGETS smokeqtopengl LIBRARY DESTINATION ${LIB_I=
NSTALL_DIR}
 =

 if (WIN32)
 	# Realign the stack, for compatibility with an older ABI.
-	set_target_properties (smokeqtopengl PROPERTIES COMPILE_FLAGS -mstackreal=
ign)
+	if(CMAKE_COMPILER_IS_GNUCXX)
+		set_target_properties(smokeqtopengl PROPERTIES COMPILE_FLAGS -mstackreal=
ign)
+	endif()
 =

     # Get rid of the "lib" prefix on archives/DLLs in Windows.
     set_target_properties(smokeqtopengl
diff --git a/qtscript/CMakeLists.txt b/qtscript/CMakeLists.txt
index d9e3b94..ccf659a 100644
--- a/qtscript/CMakeLists.txt
+++ b/qtscript/CMakeLists.txt
@@ -33,7 +33,9 @@ install(TARGETS smokeqtscript LIBRARY DESTINATION ${LIB_I=
NSTALL_DIR}
 =

 if (WIN32)
 	# Realign the stack, for compatibility with an older ABI.
-	set_target_properties (smokeqtscript PROPERTIES COMPILE_FLAGS -mstackreal=
ign)
+	if(CMAKE_COMPILER_IS_GNUCXX)
+		set_target_properties(smokeqtscript PROPERTIES COMPILE_FLAGS -mstackreal=
ign)
+	endif()
 =

     # Get rid of the "lib" prefix on archives/DLLs in Windows.
     set_target_properties(smokeqtscript
diff --git a/qtsql/CMakeLists.txt b/qtsql/CMakeLists.txt
index 54c2f27..a4c4a27 100644
--- a/qtsql/CMakeLists.txt
+++ b/qtsql/CMakeLists.txt
@@ -46,7 +46,9 @@ install(TARGETS smokeqtsql LIBRARY DESTINATION ${LIB_INST=
ALL_DIR}
 =

 if (WIN32)
 	# Realign the stack, for compatibility with an older ABI.
-	set_target_properties (smokeqtsql PROPERTIES COMPILE_FLAGS -mstackrealign)
+	if(CMAKE_COMPILER_IS_GNUCXX)
+		set_target_properties(smokeqtsql PROPERTIES COMPILE_FLAGS -mstackrealign)
+	endif()
 =

     # Get rid of the "lib" prefix on archives/DLLs in Windows.
     set_target_properties(smokeqtsql
diff --git a/qtsvg/CMakeLists.txt b/qtsvg/CMakeLists.txt
index 31c32c2..a99d0e6 100644
--- a/qtsvg/CMakeLists.txt
+++ b/qtsvg/CMakeLists.txt
@@ -44,7 +44,9 @@ install(TARGETS smokeqtsvg LIBRARY DESTINATION ${LIB_INST=
ALL_DIR}
 =

 if (WIN32)
 	# Realign the stack, for compatibility with an older ABI.
-	set_target_properties (smokeqtsvg PROPERTIES COMPILE_FLAGS -mstackrealign)
+	if(CMAKE_COMPILER_IS_GNUCXX)
+		set_target_properties(smokeqtsvg PROPERTIES COMPILE_FLAGS -mstackrealign)
+	endif()
 =

     # Get rid of the "lib" prefix on archives/DLLs in Windows.
     set_target_properties(smokeqtsvg
diff --git a/qttest/CMakeLists.txt b/qttest/CMakeLists.txt
index 392cf14..a968fc2 100644
--- a/qttest/CMakeLists.txt
+++ b/qttest/CMakeLists.txt
@@ -38,7 +38,9 @@ install(TARGETS smokeqttest LIBRARY DESTINATION ${LIB_INS=
TALL_DIR}
 =

 if (WIN32)
 	# Realign the stack, for compatibility with an older ABI.
-	set_target_properties (smokeqttest PROPERTIES COMPILE_FLAGS -mstackrealig=
n)
+	if(CMAKE_COMPILER_IS_GNUCXX)
+		set_target_properties(smokeqttest PROPERTIES COMPILE_FLAGS -mstackrealig=
n)
+	endif()
 =

     # Get rid of the "lib" prefix on archives/DLLs in Windows.
     set_target_properties(smokeqttest
diff --git a/qtuitools/CMakeLists.txt b/qtuitools/CMakeLists.txt
index a29f41a..97128d4 100644
--- a/qtuitools/CMakeLists.txt
+++ b/qtuitools/CMakeLists.txt
@@ -34,7 +34,9 @@ install(TARGETS smokeqtuitools
 =

 if (WIN32)
 	# Realign the stack, for compatibility with an older ABI.
-	set_target_properties (smokeqtuitools PROPERTIES COMPILE_FLAGS -mstackrea=
lign)
+	if(CMAKE_COMPILER_IS_GNUCXX)
+		set_target_properties(smokeqtuitools PROPERTIES COMPILE_FLAGS -mstackrea=
lign)
+	endif()
 =

     # Get rid of the "lib" prefix on archives/DLLs in Windows.
     set_target_properties(smokeqtuitools
diff --git a/qtwebkit/CMakeLists.txt b/qtwebkit/CMakeLists.txt
index 837b9d3..05cfa00 100644
--- a/qtwebkit/CMakeLists.txt
+++ b/qtwebkit/CMakeLists.txt
@@ -37,7 +37,9 @@ install(TARGETS smokeqtwebkit LIBRARY DESTINATION ${LIB_I=
NSTALL_DIR}
     RUNTIME DESTINATION bin)
 if (WIN32)
 	# Realign the stack, for compatibility with an older ABI.
-	set_target_properties (smokeqtwebkit PROPERTIES COMPILE_FLAGS -mstackreal=
ign)
+	if(CMAKE_COMPILER_IS_GNUCXX)
+		set_target_properties(smokeqtwebkit PROPERTIES COMPILE_FLAGS -mstackreal=
ign)
+	endif()
 =

     # Get rid of the "lib" prefix on archives/DLLs in Windows.
     set_target_properties(smokeqtwebkit PROPERTIES PREFIX "" IMPORT_PREFIX=
 "")
diff --git a/qtxml/CMakeLists.txt b/qtxml/CMakeLists.txt
index 3eff161..91433a9 100644
--- a/qtxml/CMakeLists.txt
+++ b/qtxml/CMakeLists.txt
@@ -42,7 +42,9 @@ install(TARGETS smokeqtxml LIBRARY DESTINATION ${LIB_INST=
ALL_DIR}
 =

 if (WIN32)
 	# Realign the stack, for compatibility with an older ABI.
-	set_target_properties (smokeqtxml PROPERTIES COMPILE_FLAGS -mstackrealign)
+	if(CMAKE_COMPILER_IS_GNUCXX)
+		set_target_properties(smokeqtxml PROPERTIES COMPILE_FLAGS -mstackrealign)
+	endif()
 =

     # Get rid of the "lib" prefix on archives/DLLs in Windows.
     set_target_properties(smokeqtxml
diff --git a/qtxmlpatterns/CMakeLists.txt b/qtxmlpatterns/CMakeLists.txt
index 071e426..1026196 100644
--- a/qtxmlpatterns/CMakeLists.txt
+++ b/qtxmlpatterns/CMakeLists.txt
@@ -44,7 +44,9 @@ install(TARGETS smokeqtxmlpatterns
 =

 if (WIN32)
 	# Realign the stack, for compatibility with an older ABI.
-	set_target_properties (smokeqtxmlpatterns PROPERTIES COMPILE_FLAGS -mstac=
krealign)
+	if(CMAKE_COMPILER_IS_GNUCXX)
+		set_target_properties(smokeqtxmlpatterns PROPERTIES COMPILE_FLAGS -mstac=
krealign)
+	endif()
 =

     # Get rid of the "lib" prefix on archives/DLLs in Windows.
     set_target_properties(smokeqtxmlpatterns
diff --git a/qwt/CMakeLists.txt b/qwt/CMakeLists.txt
index 7129386..c072e7e 100644
--- a/qwt/CMakeLists.txt
+++ b/qwt/CMakeLists.txt
@@ -51,7 +51,9 @@ install(TARGETS smokeqwt LIBRARY DESTINATION ${LIB_INSTAL=
L_DIR}
 =

 if (WIN32)
 	# Realign the stack, for compatibility with an older ABI.
-	set_target_properties (smokeqwt PROPERTIES COMPILE_FLAGS -mstackrealign)
+	if(CMAKE_COMPILER_IS_GNUCXX)
+		set_target_properties(smokeqwt PROPERTIES COMPILE_FLAGS -mstackrealign)
+	endif()
 =

     # Get rid of the "lib" prefix on archives/DLLs in Windows.
     set_target_properties(smokeqwt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic