File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ macro(CheckLAPACKCompilerFlags)
1818 if (WIN32 )
1919 set (FOPT_ILP64 /integer-size:64)
2020 else ()
21- set (FOPT_ILP64 "-integer-size 64" )
21+ set (FOPT_ILP64 "SHELL: -integer-size 64" )
2222 endif ()
2323 elseif ((CMAKE_Fortran_COMPILER_ID STREQUAL "VisualAge" ) OR # CMake 2.6
2424 (CMAKE_Fortran_COMPILER_ID STREQUAL "XL" )) # CMake 2.8
@@ -61,7 +61,7 @@ macro(CheckLAPACKCompilerFlags)
6161
6262 add_compile_options ("$<$<COMPILE_LANGUAGE:Fortran>:-recursive>" )
6363 if (UNIX )
64- add_compile_options ("$<$<COMPILE_LANGUAGE:Fortran>:-fp-model strict>" )
64+ add_compile_options ("$<$<COMPILE_LANGUAGE:Fortran>:SHELL: -fp-model strict>" )
6565 endif ()
6666
6767 # SunPro F95
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ if(BUILD_INDEX64_EXT_API)
7474 endforeach ()
7575 file (COPY matgen_64.h DESTINATION ${CMAKE_CURRENT_BINARY_DIR} /${TMGLIB} _64_obj)
7676 add_library (${TMGLIB} _64_obj OBJECT ${SOURCES_64} )
77- target_compile_options (${TMGLIB} _64_obj PRIVATE ${FOPT_ILP64} -DMATGEN_64)
77+ target_compile_options (${TMGLIB} _64_obj PRIVATE " ${FOPT_ILP64} " -DMATGEN_64)
7878 set_target_properties (
7979 ${TMGLIB} _64_obj PROPERTIES
8080 POSITION_INDEPENDENT_CODE ON
You can’t perform that action at this time.
0 commit comments