X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Fapi%2Finternal%2Fio%2FCMakeLists.txt;h=28153d58465fc7f993bf62b901894fe257417c7b;hb=5c424b7a45ca882fcd92edd9558ee0a89a8ff803;hp=d9da416d5443d30abdec9a27af6296be469eb0fb;hpb=aace28299671f066bf2135ef28652f24fa1d8d26;p=bamtools.git diff --git a/src/api/internal/io/CMakeLists.txt b/src/api/internal/io/CMakeLists.txt index d9da416..28153d5 100644 --- a/src/api/internal/io/CMakeLists.txt +++ b/src/api/internal/io/CMakeLists.txt @@ -5,12 +5,12 @@ # src/api/internal/io # ========================== -set ( InternalIODir "${InternalDir}/io" ) +set( InternalIODir "${InternalDir}/io" ) #-------------------------- # platform-independent IO #-------------------------- -set ( CommonIOSources +set( CommonIOSources ${InternalIODir}/BamDeviceFactory_p.cpp ${InternalIODir}/BamFile_p.cpp ${InternalIODir}/BamFtp_p.cpp @@ -30,21 +30,17 @@ set ( CommonIOSources #------------------------ # platform-dependent IO #------------------------ -if ( _WIN32 ) - set ( PlatformIOSources - ${InternalIODir}/TcpSocketEngine_win_p.cpp - ) -else ( _WIN32 ) - set ( PlatformIOSources - ${InternalIODir}/TcpSocketEngine_unix_p.cpp - ) -endif ( _WIN32 ) +if( WIN32 ) + set( PlatformIOSources ${InternalIODir}/TcpSocketEngine_win_p.cpp ) +else() + set( PlatformIOSources ${InternalIODir}/TcpSocketEngine_unix_p.cpp ) +endif() #--------------------------- # make build-specific list #--------------------------- -set ( InternalIOSources - ${CommonIOSources} +set( InternalIOSources + ${CommonIOSources} ${PlatformIOSources} PARENT_SCOPE # <-- leave this last