summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authornpmccallum <npmccallum@c587cffe-e639-0410-9787-d7902ae8ed56>2010-01-17 03:54:42 +0000
committernpmccallum <npmccallum@c587cffe-e639-0410-9787-d7902ae8ed56>2010-01-17 03:54:42 +0000
commit7aae4b0774bab3475dc89307bbf28501e76accb6 (patch)
tree80e209ce0ce7c65c92eeec13887d1d80ce093759 /CMakeLists.txt
parent59f68aed530bebe52f8e6252ed5b939f74b87ec1 (diff)
downloadlibproxy-git-7aae4b0774bab3475dc89307bbf28501e76accb6.tar.gz
make the check for 64bit libdir a bit more elegant; add global cxx flags
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 2 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 508ead8..70530c5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,10 +8,7 @@ project(libproxy)
set(CMAKE_PROJECT_VERSION 0.4.0)
# Setup our relative paths
-set(rlibdir lib/)
-if(${CMAKE_SYSTEM_PROCESSOR} MATCHES 64)
- set(rlibdir lib64/)
-endif()
+set(rlibdir lib${LIB_SUFFIX}/)
set(rmoduledir ${rlibdir}/${CMAKE_PROJECT_NAME}/${CMAKE_PROJECT_VERSION}/modules/)
set(rlibexecdir libexec/)
set(rbindir bin/)
@@ -27,7 +24,7 @@ set(includedir ${prefix}/${rincludedir})
# Add a global compilation stuff
add_definitions(-D_POSIX_C_SOURCE=1)
-
+set(CMAKE_CXX_FLAGS "-g -Wall -Werror ${CMAKE_CXX_FLAGS}")
### Subdirectories
add_subdirectory(libproxy)