Browse files

Buildsystem: Stop the retarded recursive hunting for CMakeLists.txt w…

…hen copying SQL-files nad use the proper method for direct copying.

Closes issue 5240

--HG--
branch : trunk
  • Loading branch information...
1 parent a99e12c commit e57866ac9acc8e2457c861495d72d0eb3e740afc click committed Dec 24, 2010
View
23 sql/CMakeLists.txt
@@ -1,6 +1,21 @@
+# Copyright (C) 2005-2010 Trinity <http://www.trinitycore.org/>
+#
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
if( WITH_SQL )
- add_subdirectory(updates)
- add_subdirectory(scripts)
- add_subdirectory(base)
- add_subdirectory(create)
+ install(
+ DIRECTORY
+ updates
+ scripts
+ base
+ create
+ DESTINATION
+ shared/trinity/sql
+ )
endif()
View
5 sql/create/CMakeLists.txt
@@ -1,5 +0,0 @@
-########### install files ###############
-
-FILE(GLOB _SQL *.sql)
-
-install(FILES ${_SQL} DESTINATION share/trinity/sql/tools)
View
5 sql/scripts/CMakeLists.txt
@@ -1,5 +0,0 @@
-########### install files ###############
-
-FILE(GLOB _SQL *.sql)
-
-install(FILES ${README} DESTINATION share/trinity/sql/full)
View
3 sql/updates/2.4.3_old/CMakeLists.txt
@@ -1,3 +0,0 @@
-FILE(GLOB _SQL_243 *.sql)
-
-INSTALL(FILES ${_SQL_243} DESTINATION share/trinity/sql/updates/2.4.3_old)
View
3 sql/updates/3.0.9_old/CMakeLists.txt
@@ -1,3 +0,0 @@
-FILE(GLOB _SQL_309 *.sql)
-
-INSTALL(FILES ${_SQL_309} DESTINATION share/trinity/sql/updates/3.0.9_old)
View
3 sql/updates/3.1.3_old/CMakeLists.txt
@@ -1,3 +0,0 @@
-FILE(GLOB _SQL_313 *.sql)
-
-INSTALL(FILES ${_SQL_313} DESTINATION share/trinity/sql/updates/3.1.3_old)
View
3 sql/updates/3.2.2a_old/CMakeLists.txt
@@ -1,3 +0,0 @@
-FILE(GLOB _SQL_322 *.sql)
-
-INSTALL(FILES ${_SQL_322} DESTINATION share/trinity/sql/updates/3.2.2a_old)
View
3 sql/updates/3.3.2_old/CMakeLists.txt
@@ -1,3 +0,0 @@
-FILE(GLOB _SQL_332 *.sql)
-
-INSTALL(FILES ${_SQL_332} DESTINATION share/trinity/sql/updates/3.3.2_old)
View
3 sql/updates/3.3.3a_old/CMakeLists.txt
@@ -1,3 +0,0 @@
-FILE(GLOB _SQL_333 *.sql)
-
-INSTALL(FILES ${_SQL_333} DESTINATION share/trinity/sql/updates/3.3.3a_old)
View
3 sql/updates/3.3.5a_old/CMakeLists.txt
@@ -1,3 +0,0 @@
-FILE(GLOB _SQL_335 *.sql)
-
-INSTALL(FILES ${_SQL_333} DESTINATION share/trinity/sql/updates/3.3.5a_old)
View
11 sql/updates/CMakeLists.txt
@@ -1,11 +0,0 @@
-add_subdirectory(2.4.3_old)
-add_subdirectory(3.0.9_old)
-add_subdirectory(3.1.3_old)
-add_subdirectory(3.2.2a_old)
-add_subdirectory(3.3.2_old)
-add_subdirectory(3.3.3a_old)
-add_subdirectory(3.3.5a_old)
-
-FILE(GLOB _SQL_UPDATES *.sql)
-
-INSTALL(FILES ${_SQL_UPDATES} DESTINATION share/trinity/sql/updates)

0 comments on commit e57866a

Please sign in to comment.