diff --git a/CMakeLists.txt b/CMakeLists.txt index 2ec06e528..a1914b760 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -262,7 +262,9 @@ if(NOT CMAKE_CROSSCOMPILING) find_package(PkgConfig) endif() find_package(ZLIB) -find_package(Crypto) +if(TARGET_OS AND NOT(TARGET_OS STREQUAL "mac")) + find_package(Crypto) +endif() find_package(Curl) find_package(Freetype) if(DOWNLOAD_GTEST) @@ -1490,7 +1492,7 @@ foreach(target ${TARGETS_LINK}) target_link_libraries(${target} -stdlib=libc++) target_link_libraries(${target} -mmacosx-version-min=10.7) endif() - if(MINGW OR TARGET_OS STREQUAL "linux") + if(MINGW) # Statically link the standard libraries with on MinGW/Linux so we don't # have to ship them as DLLs. target_link_libraries(${target} -static-libgcc)