Skip to content

Commit

Permalink
better build support for OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
zerotao committed Jul 26, 2011
1 parent e3f6b07 commit 7bcc4c2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeModules/BaseConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ if(CMAKE_COMPILER_IS_GNUCC)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wshorten-64-to-32 -D_BSD_SOURCE")
endif(APPLE)
if (UNIX)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -D_BSD_SOURCE -D_POSIX_C_SOURCE=199309L")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -D_BSD_SOURCE -D_POSIX_C_SOURCE=199309L")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC ")
if (NOT APPLE)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_BSD_SOURCE -D_POSIX_C_SOURCE=199309L")
endif(NOT APPLE)
endif(UNIX)
endif(CMAKE_COMPILER_IS_GNUCC)

Expand Down

0 comments on commit 7bcc4c2

Please sign in to comment.