use explicit file paths for CMake rather then globing, This is recommended by cmake devs.
globbing vs explicit is discussed here. http://www.cmake.org/pipermail/cmake/2008-December/025694.html Practical implications are: - developers need to keep CMakeLists.txt files up to date. - Users wont get strange linking errors if they build after a file is added, since CMake detects CMakeLists.txt is modified and automatically reconfigure.
This commit is contained in:
@@ -27,13 +27,6 @@
|
||||
# this warning on generated files gets annoying
|
||||
STRING(REGEX REPLACE "-Wunused-parameter" "" CMAKE_C_FLAGS ${CMAKE_C_FLAGS})
|
||||
|
||||
FILE(GLOB SRC stubs.c)
|
||||
|
||||
IF(WITH_BUILDINFO)
|
||||
ADD_DEFINITIONS(-DBUILD_DATE)
|
||||
FILE(GLOB SRC ${SRC} ../../creator/buildinfo.c)
|
||||
ENDIF(WITH_BUILDINFO)
|
||||
|
||||
SET(INC
|
||||
.
|
||||
..
|
||||
@@ -43,6 +36,17 @@ SET(INC
|
||||
../../../source/blender/blenkernel
|
||||
)
|
||||
|
||||
SET(SRC
|
||||
stubs.c
|
||||
)
|
||||
|
||||
IF(WITH_BUILDINFO)
|
||||
ADD_DEFINITIONS(-DBUILD_DATE)
|
||||
LIST(APPEND SRC
|
||||
../../creator/buildinfo.c
|
||||
)
|
||||
ENDIF(WITH_BUILDINFO)
|
||||
|
||||
IF(WITH_GAMEENGINE)
|
||||
ADD_DEFINITIONS(-DGAMEBLENDER)
|
||||
ENDIF(WITH_GAMEENGINE)
|
||||
|
Reference in New Issue
Block a user