mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 22:31:18 -05:00
1edf138506
For policy-specific tests, use the version before the policy was introduced. Otherwise, use 3.5 where possible. Also, remove `cmake_minimum_required()` and `project()` calls from individual cases where they are handled by `CMakeLists.txt`.
10 lines
243 B
CMake
10 lines
243 B
CMake
cmake_policy(VERSION 2.8.11)
|
|
project(CMP0022-WARN)
|
|
|
|
add_library(foo SHARED empty_vs6_1.cpp)
|
|
add_library(bar SHARED empty_vs6_2.cpp)
|
|
add_library(bat SHARED empty_vs6_3.cpp)
|
|
|
|
target_link_libraries(foo bar)
|
|
target_link_libraries(foo PRIVATE bat)
|