This website requires JavaScript.
Explore
Help
Sign In
kolan
/
CMake
Watch
1
Star
0
Fork
You've already forked CMake
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
3611d77b6d
CMake
/
Tests
/
RunCMake
/
ObjectLibrary
/
CMakeLists.txt
4 lines
98 B
CMake
Raw
Normal View
History
Unescape
Escape
Cygwin: Avoid legacy warnings in RunCMake.* tests Set the minimum required version of CMake high enough to avoid the warning for CMAKE_LEGACY_CYGWIN_WIN32. The warning appears on stderr and breaks the expected output matching.
2013-08-13 17:46:14 +04:00
cmake_minimum_required
(
VERSION
2.8.4
)
Test OBJECT library failure cases Add "RunCMake.ObjectLibrary" test to verify that unsupported use cases are rejected with errors: * An OBJECT library may not reference another object library * An OBJECT library may not be referenced in target_link_libraries * An OBJECT library may not contain non-compiling sources * An OBJECT library may not have pre/post build/link commands * An OBJECT library may not be installed, exported, or imported Also verify that invalid $<TARGET_OBJECTS:...> expressions are diagnosed.
2012-03-12 22:51:30 +04:00
project
(
${
RunCMake_TEST
}
C
)
include
(
${
RunCMake_TEST
}
.cmake
)