[ros-diffs] [spetreolle] 49074: [CMAKE] Fix winebuild link on unix.

spetreolle at svn.reactos.org spetreolle at svn.reactos.org
Sat Oct 9 14:53:53 UTC 2010


Author: spetreolle
Date: Sat Oct  9 14:53:52 2010
New Revision: 49074

URL: http://svn.reactos.org/svn/reactos?rev=49074&view=rev
Log:
[CMAKE]
Fix winebuild link on unix.


Modified:
    branches/cmake-bringup/tools/winebuild/CMakeLists.txt

Modified: branches/cmake-bringup/tools/winebuild/CMakeLists.txt
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/tools/winebuild/CMakeLists.txt?rev=49074&r1=49073&r2=49074&view=diff
==============================================================================
--- branches/cmake-bringup/tools/winebuild/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/tools/winebuild/CMakeLists.txt [iso-8859-1] Sat Oct  9 14:53:52 2010
@@ -1,7 +1,3 @@
-
-add_definitions(-DEXEEXT=".exe")
-add_definitions(-Dpclose=_pclose)
-add_definitions(-Dpopen=_popen)
 
 list(APPEND SOURCE
     import.c
@@ -16,6 +12,11 @@
     utils.c
 )
 
+add_definitions(-DEXEEXT=".exe")
+if(NOT UNIX)
+add_definitions(-Dpclose=_pclose)
+add_definitions(-Dpopen=_popen)
+endif()
 if(MSVC)
     list(APPEND SOURCE getopt.c)
     include_directories(include)




More information about the Ros-diffs mailing list