Merge pull request #5 from ncorgan/linux_64bit_cmake_fix

Added -fPIC flag to Linux builds
This commit is contained in:
Sébastien Rombauts 2013-10-27 09:56:13 -07:00
commit d752de0898

View File

@ -22,3 +22,6 @@ add_library (SQLiteCpp
Transaction.cpp Transaction.cpp
Transaction.h Transaction.h
) )
if(LINUX AND (CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang"))
set_target_properties(SQLiteCpp PROPERTIES COMPILE_FLAGS "-fPIC")
endif(LINUX AND (CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang"))