diff options
author | Renato Oliveira <renolive@rodrigo-oliveiras-macbook-pro-15.local> | 2010-05-19 14:32:14 -0300 |
---|---|---|
committer | Renato Filho <renato.filho@openbossa.org> | 2010-05-19 17:40:14 -0300 |
commit | bb32f636589e915811d5ad9dce598f226fa49fbf (patch) | |
tree | 93fff0c418e50d218665723ebed93a490a6c836f /CMakeLists.txt | |
parent | b830e6696627e1c740e7f93f7978c604a59ee7ac (diff) |
MacOs compiler fix.
Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>,
Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 73846a203..7cab44251 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,9 +4,19 @@ project(pysidebindings) cmake_minimum_required(VERSION 2.6) -set(CMAKE_CXX_FLAGS_RELEASE "-Wall -DNDEBUG -Os -Wl,-O1 -Wl,--hash-style=gnu -Wno-strict-aliasing -fvisibility=hidden") +set(CMAKE_CXX_FLAGS_RELEASE "-Wall -DNDEBUG -Os -Wno-strict-aliasing -fvisibility=hidden") set(CMAKE_CXX_FLAGS_DEBUG "-g -fno-common -Wall -fno-strict-aliasing -fvisibility=hidden") +if (CMAKE_HOST_UNIX) + if (CMAKE_HOST_APPLE) + if (NOT QT_INCLUDE_DIR) + set(QT_INCLUDE_DIR "/Library/Frameworks") + endif () + else () + set(CMAKE_CXX_FLAGS_RELEASE "$CMAKE_CXX_FLAGS_RELEASE -Wl,-O1 -Wl,--hash-style=gnu") + endif () +endif () + if (NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Release) endif() |