CMake/Tests/RunCMake/CMP0065/WARN-ON.cmake
Chuck Atkins 9784af1b50 CMP0065: Restrict the use of CMAKE_SHARED_LIBRARY_LINK_<LANG>_FLAGS
This new policy restricts the addition of the shared library link flags
to executables only when the ENABLE_EXPORTS property is set to True.
2015-09-21 10:12:13 -04:00

4 lines
94 B
CMake

set(CMAKE_POLICY_WARNING_CMP0065 1)
enable_language(C)
add_executable(main subproject/main.c)