Skip to content

Commit

Permalink
Added better 64bit support and support for non-debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Pedersen committed Oct 23, 2014
1 parent c27ce35 commit 9f214ff
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,14 @@
cmake_minimum_required(VERSION 2.6)
project(HOMEPORT C)

set(CMAKE_C_FLAGS "-DHPD_HTTP -DLR_ORIGIN")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} -g -DDEBUG -Wall")

# -fPIC is for compiling on 64bit
set(CMAKE_C_FLAGS_DEBUG "-fPIC -g -DDEBUG -DHPD_HTTP -DLR_ORIGIN -Wall")
if( CMAKE_SIZEOF_VOID_P EQUAL 8 )
set(CMAKE_C_FLAGS "-fPIC" ${CMAKE_C_FLAGS})
set(CMAKE_C_FLAGS_DEBUG "-fPIC" ${CMAKE_C_FLAGS_DEBUG})
endif( CMAKE_SIZEOF_VOID_P EQUAL 8 )

set(CTEST_MEMORYCHECK_COMMAND "/usr/bin/valgrind")
include(CTest)
Expand Down

0 comments on commit 9f214ff

Please sign in to comment.