]> git.donarmstrong.com Git - bamtools.git/commitdiff
Changed platform check to use standard cmake variable (issue #66)
authorDerek Barnett <derekwbarnett@gmail.com>
Wed, 24 Jul 2013 18:48:09 +0000 (14:48 -0400)
committerDerek Barnett <derekwbarnett@gmail.com>
Wed, 24 Jul 2013 18:48:09 +0000 (14:48 -0400)
  - 'WIN32' instead of '_WIN32'

src/api/internal/io/CMakeLists.txt

index d9da416d5443d30abdec9a27af6296be469eb0fb..28153d58465fc7f993bf62b901894fe257417c7b 100644 (file)
@@ -5,12 +5,12 @@
 # src/api/internal/io
 # ==========================
 
 # src/api/internal/io
 # ==========================
 
-set ( InternalIODir "${InternalDir}/io" )
+set( InternalIODir "${InternalDir}/io" )
 
 #--------------------------
 # platform-independent IO
 #--------------------------
 
 #--------------------------
 # platform-independent IO
 #--------------------------
-set ( CommonIOSources
+set( CommonIOSources
         ${InternalIODir}/BamDeviceFactory_p.cpp
         ${InternalIODir}/BamFile_p.cpp
         ${InternalIODir}/BamFtp_p.cpp
         ${InternalIODir}/BamDeviceFactory_p.cpp
         ${InternalIODir}/BamFile_p.cpp
         ${InternalIODir}/BamFtp_p.cpp
@@ -30,21 +30,17 @@ set ( CommonIOSources
 #------------------------
 # platform-dependent IO
 #------------------------
 #------------------------
 # 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
 #---------------------------
 
 #---------------------------
 # make build-specific list
 #---------------------------
-set ( InternalIOSources 
-        ${CommonIOSources} 
+set( InternalIOSources
+        ${CommonIOSources}
         ${PlatformIOSources} 
 
         PARENT_SCOPE # <-- leave this last
         ${PlatformIOSources} 
 
         PARENT_SCOPE # <-- leave this last