forked from lcompilers/lpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sebastian Ehlert
committed
Jul 11, 2021
1 parent
165773e
commit 0949c41
Showing
4 changed files
with
16 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Backup the original value of the requested library suffixes | ||
set(_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES}) | ||
# Static libraries end with .a on Unix and .lib on Windows | ||
set(CMAKE_FIND_LIBRARY_SUFFIXES .a .lib) | ||
|
||
# Now use CMake's built-in ZLIB finder | ||
find_package(ZLIB REQUIRED) | ||
|
||
# Reset the library suffixes to the original value | ||
set(CMAKE_FIND_LIBRARY_SUFFIXES ${_CMAKE_FIND_LIBRARY_SUFFIXES}) | ||
# Unset the temporary to not pollute the global namespace | ||
unset(_CMAKE_FIND_LIBRARY_SUFFIXES) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters