Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
rdementi authored Jul 11, 2024
1 parent b76833e commit 8b4578d
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 @@ -17,7 +17,7 @@ else()
endif()

if (LINUX)
if(EXISTS "/etc/os-release" AND IS_READABLE "/etc/os-release")
if(EXISTS "/etc/os-release") # AND IS_READABLE "/etc/os-release" (3.29 cmake required :-( )
file(STRINGS "/etc/os-release" OS_RELEASE_CONTENTS)
foreach(LINE ${OS_RELEASE_CONTENTS})
if(LINE MATCHES "^ID=")
Expand Down

0 comments on commit 8b4578d

Please sign in to comment.