diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-01-27 03:02:25 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-01-27 03:02:25 +0300 |
commit | 6a2e5ad59913a486752699095a8bcd1713b0ad60 (patch) | |
tree | 50ad8de4a756e3025fd9894e129aa231bd6cf12d /extern/bullet2/CMakeLists.txt | |
parent | 340e411889d85f183ede4be6442436d7d2c83103 (diff) |
[#25815] Patch gcc 4.6
with minor edits, made sure it works in CMake too.
Diffstat (limited to 'extern/bullet2/CMakeLists.txt')
-rw-r--r-- | extern/bullet2/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/extern/bullet2/CMakeLists.txt b/extern/bullet2/CMakeLists.txt index 5f8901a646c..a8f8801af70 100644 --- a/extern/bullet2/CMakeLists.txt +++ b/extern/bullet2/CMakeLists.txt @@ -319,4 +319,9 @@ set(SRC src/btBulletDynamicsCommon.h ) +if(CMAKE_COMPILER_IS_GNUCC) + # needed for gcc 4.6+ + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive") +endif() + blender_add_lib(extern_bullet "${SRC}" "${INC}") |