Skip to content

Commit

Permalink
syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
horta committed Jun 22, 2021
1 parent ead5e10 commit 0e05ce7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmake/FindZSTD.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@

set(zstd_incl_dirs "/usr/include" "/usr/local/include")
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
set(_ZSTD_x86 "(x86)")
set(zstd_incl_dirs ${zstd_incl_dirs} "$ENV{PROGRAMFILES}/zstd/include")
set(zstd_incl_dirs ${zstd_incl_dirs} "$ENV{PROGRAMFILES(x86)}/zstd/include")
set(zstd_incl_dirs ${zstd_incl_dirs} "$ENV{PROGRAMFILES${_ZSTD_x86}}/zstd/include")
set(zstd_incl_dirs ${zstd_incl_dirs} "$ENV{PROGRAMDATA}/chocolatey/lib/zstandard/tools/include")
unset(_ZSTD_x86)
endif()

if(ZSTD_INCLUDEDIR)
Expand All @@ -45,9 +47,11 @@ find_path(

set(zstd_lib_dirs "/usr/lib" "/usr/local/lib")
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
set(_ZSTD_x86 "(x86)")
set(zstd_lib_dirs ${zstd_lib_dirs} "$ENV{PROGRAMFILES}/zstd/lib")
set(zstd_lib_dirs ${zstd_lib_dirs} "$ENV{PROGRAMFILES(x86)}/zstd/lib")
set(zstd_lib_dirs ${zstd_lib_dirs} "$ENV{PROGRAMFILES${_ZSTD_x86}}/zstd/lib")
set(zstd_lib_dirs ${zstd_lib_dirs} "$ENV{PROGRAMDATA}/chocolatey/lib/zstandard/tools/dll")
unset(_ZSTD_x86)
endif()

if(ZSTD_LIBRARYDIR)
Expand Down

0 comments on commit 0e05ce7

Please sign in to comment.