Browse Source

CMake: Only build 'autorestart' on UNIX.

Sam Edwards 12 years ago
parent
commit
9035f7aa85
1 changed files with 5 additions and 3 deletions
  1. 5 3
      direct/src/autorestart/CMakeLists.txt

+ 5 - 3
direct/src/autorestart/CMakeLists.txt

@@ -1,3 +1,5 @@
-add_executable(autorestart autorestart.c)
-set_target_properties(autorestart PROPERTIES COMPILE_DEFINITIONS WITHIN_PANDA)
-target_link_libraries(autorestart p3dtool)
+if(UNIX)
+  add_executable(autorestart autorestart.c)
+  set_target_properties(autorestart PROPERTIES COMPILE_DEFINITIONS WITHIN_PANDA)
+  target_link_libraries(autorestart p3dtool)
+endif()