Disable Python scripts on Windows

refs #7243
This commit is contained in:
Gunnar Beutner 2014-10-01 23:51:43 +01:00
parent 2295835e23
commit a68bfea737

View File

@ -15,13 +15,14 @@
# along with this program; if not, write to the Free Software Foundation
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
find_package(PythonInterp REQUIRED)
if(NOT WIN32)
find_package(PythonInterp REQUIRED)
add_subdirectory(icinga2)
add_subdirectory(icinga2)
configure_file(setup.py.cmake ${CMAKE_CURRENT_BINARY_DIR}/setup.py @ONLY)
configure_file(setup.py.cmake ${CMAKE_CURRENT_BINARY_DIR}/setup.py @ONLY)
install(CODE "
install(CODE "
execute_process(
COMMAND \"${CMAKE_COMMAND}\"
\"-DSETUP_PY=${CMAKE_CURRENT_BINARY_DIR}/setup.py\"
@ -40,4 +41,5 @@ install(CODE "
REMOVE
\$ENV{DESTDIR}${CMAKE_INSTALL_FULL_BINDIR}/icinga2-list-objects
)"
)
)
endif()