mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-03 04:10:05 -06:00
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`.
4 lines
144 B
CMake
4 lines
144 B
CMake
set_property(GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS FALSE)
|
|
add_library(foo INTERFACE)
|
|
target_compile_definitions(foo INTERFACE FOO_DEFINE)
|