mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
29c5035e0f
This gets rid of a few patches that aren't needed any more, adds one to make the tests work again and updates the MacOS patch. It also introduces two builds - one with the Qt application and one without. The patch to get the tests working will be submitted upstream and hopefully not be needed for future releases.
30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index a2297311..25a51f56 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -138,7 +138,7 @@ if (UNIX)
|
|
|
|
|
|
if (APPLE)
|
|
- set (CMAKE_CXX_FLAGS "--sysroot ${CMAKE_OSX_SYSROOT} ${CMAKE_CXX_FLAGS} -DGTEST_USE_OWN_TR1_TUPLE=1")
|
|
+ set (CMAKE_CXX_FLAGS "--sysroot ${CMAKE_OSX_SYSROOT} ${CMAKE_CXX_FLAGS}")
|
|
|
|
find_library (lib_ScreenSaver ScreenSaver)
|
|
find_library (lib_IOKit IOKit)
|
|
@@ -292,14 +292,7 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
|
${OPENSSL_ROOT}/lib/libssl.lib
|
|
${OPENSSL_ROOT}/lib/libcrypto.lib
|
|
)
|
|
-elseif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|
- set (OPENSSL_ROOT /usr/local/opt/openssl)
|
|
- include_directories (BEFORE SYSTEM ${OPENSSL_ROOT}/include)
|
|
- set (OPENSSL_LIBS
|
|
- ${OPENSSL_ROOT}/lib/libssl.a
|
|
- ${OPENSSL_ROOT}/lib/libcrypto.a
|
|
- )
|
|
-elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
|
+elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|
set (OPENSSL_LIBS ssl crypto)
|
|
else()
|
|
message (FATAL_ERROR "Couldn't find OpenSSL")
|