CMake: Only build 'autorestart' on UNIX.

This commit is contained in:
Sam Edwards 2014-02-08 17:59:12 -07:00
parent e2a03d6435
commit 9035f7aa85
1 changed files with 5 additions and 3 deletions

View File

@ -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()