mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-08 14:50:10 -06:00
This was accidentally removed when the command templates were reorganized to introduce the new policy. Restore the flag in the shared library creation to ensure that we emit the import libraries to the correct location.
7 lines
263 B
CMake
7 lines
263 B
CMake
cmake_policy(SET CMP0157 NEW)
|
|
enable_language(Swift)
|
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
|
add_library(L SHARED L.swift)
|