Closed gekowa closed 2 years ago
This variable is used to initialize the compiler options for every target, every source file of that language https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_FLAGS.html
I.e. this change shouldn't have any effect as those options are already implemented for all targets by CMake
Oh, that makes sense. I'll improve later.
The reason that I created this PR is that I'd like to have a place to pass '-fPIC' to the compiler, especially. ifort, or I have to manually modify CMakeLists.txt to add this compiler option each time. So, if CMAKE_LANG_FLAGS were not appropriate, please let me know if there's a better place. Thank you!
This variable is used to initialize the compiler options for every target, every source file of that language https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_FLAGS.html
I.e. this change shouldn't have any effect as those options are already implemented for all targets by CMake