Skip to content

Commit d0e20b2

Browse files
cmake: correct setting of -no-wrap-margin
Correct to use target_compile_options instead of target_compile_definitions.
1 parent 1bd4777 commit d0e20b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ elseif(CMAKE_Fortran_COMPILER_ID STREQUAL "Intel" OR CMAKE_Fortran_COMPILER_ID S
127127
endif()
128128
# When compiling with Intel and not on Windows apply -no-wrap-margin.
129129
if (NOT(WIN32))
130-
target_compile_definitions(fds PRIVATE -no-wrap-margin)
130+
target_compile_options(fds PRIVATE -no-wrap-margin)
131131
endif()
132132
endif()
133133

0 commit comments

Comments
 (0)