Skip to content

Commit

Permalink
Strip trailing \n of getconf output
Browse files Browse the repository at this point in the history
The \n made the build process fail (on ArchLinux, using Ninja)
  • Loading branch information
nhusung committed Mar 23, 2024
1 parent 5292fd9 commit 822bd40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ if (UNIX)
RESULT_VARIABLE UNIX_PS_CODE
OUTPUT_VARIABLE UNIX_PS_STDOUT)
if (UNIX_PS_CODE EQUAL 0)
set (CAL_PAGE_SIZE "${UNIX_PS_STDOUT}")
string (STRIP "${UNIX_PS_STDOUT}" CAL_PAGE_SIZE)
endif ()
endif (UNIX)
if (NOT DEFINED CAL_PAGE_SIZE)
Expand Down

0 comments on commit 822bd40

Please sign in to comment.