Skip to content
Snippets Groups Projects
Commit e8871e5b authored by Ansgar Philippsen's avatar Ansgar Philippsen
Browse files

fixed bug in CMakeList what would trigger rebuilds whenever cmake was re-run

parent c4f865b7
Branches
Tags
No related merge requests found
......@@ -246,7 +246,10 @@ else()
endif()
if (CMAKE_COMPILER_IS_GNUCXX)
set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -fno-strict-aliasing" CACHE STRING "" FORCE)
# do not write back into cache, otherwise the compile command line gets expanded
# with multiple -fno-strict-aliasing flags, triggering a complete rebuild whenever
# cmake is run
set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -fno-strict-aliasing")
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment