diff options
author | Philipp Storz <philipp.storz@bareos.com> | 2020-06-08 13:23:03 +0300 |
---|---|---|
committer | Philipp Storz <philipp.storz@bareos.com> | 2020-08-28 21:17:56 +0300 |
commit | fd797ce0f1aaba9e4a792f6380226461462e554e (patch) | |
tree | dca2ac9fe1e587a193f4a805238a70c371b55966 /CMakeLists.txt | |
parent | 105caf29229f7f0159867e6514d76ad5539cf581 (diff) |
cmake: windows cross build works without extracting to sources
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
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() |