Merge pull request #6 from ncorgan/cmake_var_fix

cmake: fixed CMake variable detecting Linux
This commit is contained in:
Sébastien Rombauts 2013-10-28 07:47:04 -07:00
commit 4b96240012

View File

@ -22,6 +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")) if(UNIX AND (CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang"))
set_target_properties(SQLiteCpp PROPERTIES COMPILE_FLAGS "-fPIC") set_target_properties(SQLiteCpp PROPERTIES COMPILE_FLAGS "-fPIC")
endif(LINUX AND (CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")) endif(UNIX AND (CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang"))