File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ option(BUILD_TESTING "Enable CTest" ${_DEFAULT_BUILD_TESTING})
43
43
44
44
# Fortran standard
45
45
set (FLIBCPP_FORTRAN_STD "03" CACHE STRING
46
- "Fortran standard for compiling generated code (options: 03/08/15/18)" )
46
+ "Fortran standard for compiling generated code (options: 03/08/15/18/none )" )
47
47
if (FLIBCPP_FORTRAN_STD AND NOT FLIBCPP_FORTRAN_STD STREQUAL "none" )
48
48
if (CMAKE_Fortran_COMPILER_ID STREQUAL "GNU" )
49
49
set (_FLIBCPP_STD_FLAGS "-std=f20${FLIBCPP_FORTRAN_STD} " )
@@ -166,6 +166,9 @@ function(flibcpp_add_module name)
166
166
PRIVATE
167
167
cxx_std_11
168
168
)
169
+ # Compile with e.g. std=c++11 instead of =gnu++11
170
+ set_property (TARGET ${name} PROPERTY CXX_EXTENSIONS OFF )
171
+
169
172
if (_FLIBCPP_STD_FLAGS)
170
173
# Compile Fortran code with a particular standard
171
174
target_compile_options (${name}
You can’t perform that action at this time.
0 commit comments