-
Notifications
You must be signed in to change notification settings - Fork 87
User-specified compilation flags are ignored #164
Comments
Minetest does this too: aren't users supposed to put their own wishes into |
CMake has variables by these names since version 3.11 as documented. Our variables by the same names are, to my knowledge, internal. This is very confusing, and I suggest we change the names of our variables to something like Also note that there's a documented variable that can be used to initialize the value of The last link explicitly states that |
CMake 2.6 has these already, just documented separately: |
Sounds like we need to fix it in MT and Irrlicht then, PRs welcome. |
irrlicht/source/Irrlicht/CMakeLists.txt
Lines 17 to 18 in 5527b9f
This was probably intended to provide default values for
CMAKE_CXX_FLAGS_RELEASE
and (for whatever reason)CMAKE_CXX_FLAGS_DEBUG
. Instead, it sets regular variables which hide the user-specified (cache) variables with hard-coded values.E.g. I have this in my CMakeCache:
CMAKE_BUILD_TYPE:STRING=Release
CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
But actual compilation command doesn’t contain
-DNDEBUG
.The text was updated successfully, but these errors were encountered: