Skip to content

Commit

Permalink
Set HOST_BIG_ENDIAN in definitions, not options
Browse files Browse the repository at this point in the history
The HOST_BIG_ENDIAN configuration is a preprocessor directive, not a
compiler option.
  • Loading branch information
jokva committed Dec 19, 2018
1 parent 6d81727 commit e769b89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ target_compile_options(segyio BEFORE
PRIVATE
${c99}
$<$<CONFIG:Debug>:${warnings-c}>
$<${HOST_BIG_ENDIAN}:HOST_BIG_ENDIAN>
)
target_compile_definitions(segyio
PRIVATE
${mmap}
${fstat}
${ftello}
$<${HOST_BIG_ENDIAN}:HOST_BIG_ENDIAN>
)
set_target_properties(segyio
PROPERTIES
Expand Down

0 comments on commit e769b89

Please sign in to comment.