Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

Commit 6f8075f

Browse files
committed
build: bump to CMake 3.16, centralise artifacts
Put all the libraries into lib, all the binaries into bin. This bumps up the CMake requirement to 3.16.0 to enable the co-located artifacts. It should make it easier for people to find the artifacts in the build tree.
1 parent a1b6606 commit 6f8075f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.15.1)
1+
cmake_minimum_required(VERSION 3.16.0)
22
project(TensorFlow
33
LANGUAGES Swift)
44

@@ -18,6 +18,9 @@ endif()
1818

1919
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/modules)
2020

21+
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
22+
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
23+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
2124
set(CMAKE_Swift_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/swift)
2225

2326
option(USE_BUNDLED_X10

0 commit comments

Comments
 (0)