cmake was using dna source list with the variable out of scope, possibly causing...
authorCampbell Barton <ideasman42@gmail.com>
Tue, 22 Feb 2011 06:23:07 +0000 (06:23 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 22 Feb 2011 06:23:07 +0000 (06:23 +0000)
CMakeLists.txt
build_files/cmake/packaging.cmake
source/blender/CMakeLists.txt
source/blender/makesdna/CMakeLists.txt
source/blender/makesdna/intern/CMakeLists.txt

index ce881f24e970cab61548e7fee2ea9c52c4998349..6ce17f5d88bce0ec69efdc48a593e138713d758b 100644 (file)
@@ -161,9 +161,17 @@ endif()
 
 TEST_SSE_SUPPORT()
 
 
 TEST_SSE_SUPPORT()
 
+#-----------------------------------------------------------------------------
+# Initialize un-cached vars, avoid unused warning
+
 # linux only, not cached
 set(WITH_BINRELOC OFF)
 
 # linux only, not cached
 set(WITH_BINRELOC OFF)
 
+# these are added to later on.
+set(C_WARNINGS "")
+set(CXX_WARNINGS "")
+
+
 # disabled for now, not supported
 # option(WITH_WEBPLUGIN     "Enable Web Plugin (Unix only)" OFF)
 
 # disabled for now, not supported
 # option(WITH_WEBPLUGIN     "Enable Web Plugin (Unix only)" OFF)
 
index be2d4d76e90933ddea077020364b38e09a1f5dc6..0de5451d45f5b8d6fb89d9c72edd130c86992908 100644 (file)
@@ -5,7 +5,7 @@ set(PROJECT_VENDOR       "Blender Foundation")
 set(ORG_WEBSITE          "www.blender.org")
 
 set(CPACK_SYSTEM_NAME ${CMAKE_SYSTEM_NAME})
 set(ORG_WEBSITE          "www.blender.org")
 
 set(CPACK_SYSTEM_NAME ${CMAKE_SYSTEM_NAME})
-set(CPACK_PACKAGE_DESCRIPTION ${PROJECT_NAME_LONG})
+set(CPACK_PACKAGE_DESCRIPTION ${PROJECT_DESCRIPTION})
 set(CPACK_PACKAGE_VENDOR ${PROJECT_VENDOR})
 set(CPACK_PACKAGE_CONTACT ${PROJECT_CONTACT})
 set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/COPYING")
 set(CPACK_PACKAGE_VENDOR ${PROJECT_VENDOR})
 set(CPACK_PACKAGE_CONTACT ${PROJECT_CONTACT})
 set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/COPYING")
index c1696b142328ba05a22ea570044b7add0972fd71..263d81fab0a9093052e4d7084281e806926b1493 100644 (file)
 #
 # ***** END GPL LICENSE BLOCK *****
 
 #
 # ***** END GPL LICENSE BLOCK *****
 
+set(SRC_DNA_INC
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_ID.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_action_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_actuator_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_anim_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_armature_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_boid_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_brush_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_camera_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_cloth_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_color_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_constraint_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_controller_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_curve_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_customdata_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_documentation.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_effect_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_fileglobal_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_genfile.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_gpencil_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_group_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_image_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_ipo_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_key_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_lamp_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_lattice_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_listBase.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_material_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_mesh_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_meshdata_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_meta_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_modifier_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_nla_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_node_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_object_fluidsim.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_object_force.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_object_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_outliner_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_packedFile_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_particle_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_property_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_scene_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_screen_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_sdna_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_sensor_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_sequence_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_smoke_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_sound_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_space_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_text_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_texture_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_userdef_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_vec_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_vfont_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_view2d_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_view3d_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_windowmanager_types.h
+       ${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_world_types.h
+)
+
 add_subdirectory(editors)
 add_subdirectory(windowmanager)
 add_subdirectory(blenkernel)
 add_subdirectory(editors)
 add_subdirectory(windowmanager)
 add_subdirectory(blenkernel)
index b1e1b589c6e89c172da2aefb64817a29fb957a45..e02b33b92c13ee4e8152617e97c0a74e59e7f761 100644 (file)
 #
 # ***** END GPL LICENSE BLOCK *****
 
 #
 # ***** END GPL LICENSE BLOCK *****
 
-# Use PARENT_SCOPE so makesrna can access.
-set(SRC_DNA_INC
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_ID.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_action_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_actuator_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_anim_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_armature_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_boid_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_brush_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_camera_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_cloth_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_color_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_constraint_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_controller_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_curve_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_customdata_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_documentation.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_effect_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_fileglobal_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_genfile.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_gpencil_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_group_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_image_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_ipo_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_key_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_lamp_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_lattice_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_listBase.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_material_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_mesh_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_meshdata_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_meta_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_modifier_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_nla_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_node_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_object_fluidsim.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_object_force.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_object_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_outliner_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_packedFile_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_particle_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_property_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_scene_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_screen_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_sdna_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_sensor_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_sequence_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_smoke_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_sound_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_space_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_text_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_texture_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_userdef_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_vec_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_vfont_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_view2d_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_view3d_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_windowmanager_types.h
-       ${CMAKE_CURRENT_SOURCE_DIR}/DNA_world_types.h
-
-       PARENT_SCOPE
-)
-
 add_subdirectory(intern)
 add_subdirectory(intern)
index 09ad7a67c39dd274866a58de84cbc3a56c86022d..bb95e2c0fbccb4ab2ca879dfec46e7c0b57ad4a9 100644 (file)
@@ -57,6 +57,9 @@ add_custom_command(
 )
 
 # Build bf_dna library
 )
 
 # Build bf_dna library
+set(INC
+)
+
 set(SRC
        dna_genfile.c
        dna.c
 set(SRC
        dna_genfile.c
        dna.c