Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bareos/bareos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Storz <philipp.storz@bareos.com>2020-06-08 13:23:03 +0300
committerPhilipp Storz <philipp.storz@bareos.com>2020-08-28 21:17:56 +0300
commitfd797ce0f1aaba9e4a792f6380226461462e554e (patch)
treedca2ac9fe1e587a193f4a805238a70c371b55966 /CMakeLists.txt
parent105caf29229f7f0159867e6514d76ad5539cf581 (diff)
cmake: windows cross build works without extracting to sources
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c8826daac..8df5f7813 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -24,11 +24,11 @@ project(bareos NONE)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/core/cmake")
-add_custom_target(uninstall
- "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_SOURCE_DIR}/cmake/uninstall.cmake"
+add_custom_target(
+ uninstall "${CMAKE_COMMAND}" -P
+ "${CMAKE_CURRENT_SOURCE_DIR}/cmake/uninstall.cmake"
)
-
set(default_build_type "Debug")
find_package(Git)
@@ -74,7 +74,7 @@ endif()
if(BUILD_BAREOS_BINARIES)
add_subdirectory(core)
add_subdirectory(webui)
- if(NOT client-only AND NOT CMAKE_SYSTEM_NAME STREQUAL "Windows")
+ if(NOT client-only AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "Windows")
add_subdirectory(systemtests)
endif()
endif()