Blender Git Commit Log

Git Commits -> Revision 103a515

Revision 103a515 by Campbell Barton (master)
July 14, 2016, 09:17 (GMT)
CMake: per-target CFLAG & CXXFLAG support

Applying cflags globally can be problematic especially with extern, intern libs.

Now flags from target named will be used when defined,
allowing for developers to define flags for modules they maintain.

Convention is CMAKE_CFLAGS_${UPPERCASE_TARGET_NAME}, (CXXFLAGS for C++).

eg: CMAKE_CFLAGS_BF_BLENDER, CMAKE_CFLAGS_MAKESDNA, CMAKE_CXXFLAGS_CYCLES_KERNEL

On Linux run `make help` for full list of names, MSVC shows these in the solution.

Commit Details:

Full Hash: 103a51504372129975e60f57fbf3c983527037eb
Parent Commit: 036c006
Lines Changed: +50, -2

5 Modified Paths:

/build_files/cmake/macros.cmake (+41, -2) (Diff)
/source/blender/makesdna/intern/CMakeLists.txt (+2, -0) (Diff)
/source/blender/makesrna/intern/CMakeLists.txt (+3, -0) (Diff)
/source/blenderplayer/CMakeLists.txt (+2, -0) (Diff)
/source/creator/CMakeLists.txt (+2, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021