]> git.donarmstrong.com Git - bamtools.git/commitdiff
Merge pull request #41 from tobiasmarschall/master
authorDerek Barnett <derekwbarnett@gmail.com>
Wed, 4 Apr 2012 18:47:01 +0000 (11:47 -0700)
committerDerek Barnett <derekwbarnett@gmail.com>
Wed, 4 Apr 2012 18:47:01 +0000 (11:47 -0700)
Include header sys/filio.h when compiling on SunOS.

1  2 
CMakeLists.txt

diff --combined CMakeLists.txt
index 96d34676a13cbe20e702e654622355cc54467772,f5b9403f13a1deaecb485365a103b50462bbf880..b89990e0ecaba46096eb0bc0ef3b516e923954f9
@@@ -32,7 -32,7 +32,7 @@@ ensure_out_of_source_build( 
  # set BamTools version information
  set( BamTools_VERSION_MAJOR 2 )
  set( BamTools_VERSION_MINOR 1 )
 -set( BamTools_VERSION_BUILD 0 )
 +set( BamTools_VERSION_BUILD 1 )
  
  # set our library and executable destination dirs
  set( EXECUTABLE_OUTPUT_PATH "${CMAKE_SOURCE_DIR}/bin" )
@@@ -41,6 -41,9 +41,9 @@@ set( LIBRARY_OUTPUT_PATH    "${CMAKE_SO
  # define compiler flags for all code
  set( CMAKE_BUILD_TYPE Release )
  add_definitions( -Wall -D_FILE_OFFSET_BITS=64 )
+ if( "${CMAKE_SYSTEM_NAME}" MATCHES "SunOS" )
+       add_definitions( -DSUN_OS )
+ endif()
  
  # add our includes root path
  include_directories( src )