Skip to content

Commit

Permalink
Fix Intel compiler flags which contain a space
Browse files Browse the repository at this point in the history
  • Loading branch information
ACSimon33 committed Jun 11, 2024
1 parent d638ddb commit 7159cfb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CMAKE/CheckLAPACKCompilerFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ macro(CheckLAPACKCompilerFlags)
if(WIN32)
set(FOPT_ILP64 /integer-size:64)
else()
set(FOPT_ILP64 "-integer-size 64")
set(FOPT_ILP64 "SHELL:-integer-size 64")
endif()
elseif((CMAKE_Fortran_COMPILER_ID STREQUAL "VisualAge") OR # CMake 2.6
(CMAKE_Fortran_COMPILER_ID STREQUAL "XL")) # CMake 2.8
Expand Down Expand Up @@ -61,7 +61,7 @@ macro(CheckLAPACKCompilerFlags)

add_compile_options("$<$<COMPILE_LANGUAGE:Fortran>:-recursive>")
if(UNIX)
add_compile_options("$<$<COMPILE_LANGUAGE:Fortran>:-fp-model strict>")
add_compile_options("$<$<COMPILE_LANGUAGE:Fortran>:SHELL:-fp-model strict>")
endif()

# SunPro F95
Expand Down
2 changes: 1 addition & 1 deletion TESTING/MATGEN/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ if(BUILD_INDEX64_EXT_API)
endforeach()
file(COPY matgen_64.h DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/${TMGLIB}_64_obj)
add_library(${TMGLIB}_64_obj OBJECT ${SOURCES_64})
target_compile_options(${TMGLIB}_64_obj PRIVATE ${FOPT_ILP64} -DMATGEN_64)
target_compile_options(${TMGLIB}_64_obj PRIVATE "${FOPT_ILP64}" -DMATGEN_64)
set_target_properties(
${TMGLIB}_64_obj PROPERTIES
POSITION_INDEPENDENT_CODE ON
Expand Down

0 comments on commit 7159cfb

Please sign in to comment.