Skip to content

Commit 65fa179

Browse files
authored
Update CMakeLists.txt
1 parent 631be70 commit 65fa179

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

test/hash_functions/CMakeLists.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,22 @@ target_sources(
1414
waterhash.c
1515
generate_hash_arrays.cpp
1616
)
17+
1718
if(CMAKE_Fortran_COMPILER_ID MATCHES "^Intel")
19+
20+
# Set the C++ standard to prevent icpc breakage
21+
set(CMAKE_CXX_STANDARD 11)
22+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
23+
set(CMAKE_CXX_EXTENSIONS OFF)
24+
1825
set_target_properties(test_hash_functions PROPERTIES LINKER_LANGUAGE Fortran)
1926
endif()
27+
2028
if(CMAKE_Fortran_COMPILER_ID STREQUAL GNU AND CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 10.0)
2129
target_compile_options(
2230
test_hash_functions
2331
PRIVATE
2432
$<$<COMPILE_LANGUAGE:Fortran>:-fno-range-check>
25-
)
33+
)
2634
endif()
35+

0 commit comments

Comments
 (0)