Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmake: use add_compile_options for ssp-buffer-size
In 82c8a1e I made "--param ssp-buffer-size=4" one argument instead of two because when added to CMAKE_REQUIRED_LIBRARIES the ssp-buffer-size=4 part was being recognized as a library, breaking the compile tests. This broke the build on mac, which I fixed in 915e2d1 by using ssp flags for gcc only and not clang. Now apparently it is breaking mxe, so instead of adding this particular parameter to the MY_C_FLAGS variable which is then added to CMAKE_REQUIRED_* variables for compile tests, add it directly via ADD_COMPILE_OPTIONS(). This should hopefully resolve any remaining issues with this compiler flag.
- Loading branch information