Code

Cmake: Fix registrytool.cpp to compile on windows only
authorverbalshadow <verbalshadow@users.sourceforge.net>
Sat, 5 Apr 2008 23:49:41 +0000 (23:49 +0000)
committerverbalshadow <verbalshadow@users.sourceforge.net>
Sat, 5 Apr 2008 23:49:41 +0000 (23:49 +0000)
src/CMakeLists.txt

index e0452b0f88e6e73c09e2c94f3d41e6da366fcfe0..1a13742315065ce6c7455c11774626c5518a78f9 100644 (file)
@@ -1,3 +1,10 @@
+IF(WIN32)
+SET(ONLY_WIN
+registrytool.cpp)
+ELSEIF(WIN32)
+SET(ONLY_WIN)
+ENDIF(WIN32)
+
 SET(INKSCAPE_SRC
 arc-context.cpp
 attributes.cpp
@@ -85,7 +92,6 @@ print.cpp
 profile-manager.cpp
 proj_pt.cpp
 rect-context.cpp
-registrytool.cpp
 rubberband.cpp
 satisfied-guide-cns.cpp
 selcue.cpp
@@ -199,6 +205,7 @@ verbs.cpp
 version.cpp
 winmain.cpp
 zoom-context.cpp
+${ONLY_WIN}
 ${algorithms}
 ${api}
 ${application}