Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix Intel compiler flags which contain a space
  • Loading branch information
ACSimon33 committed Jun 11, 2024
commit 7159cfb377c9855bbc2eab0c7027c907b2e9d310
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