mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 04:29:52 +00:00
ENH: use try run source
This commit is contained in:
parent
831492a9d7
commit
d1a25bd836
@ -245,10 +245,14 @@ ENDFOREACH(FILE)
|
||||
SET(CMAKE_MAKEDEV_SOURCE
|
||||
"${CMAKE_MAKEDEV_SOURCE}
|
||||
int main ()
|
||||
{
|
||||
{
|
||||
dev_t maj = 5;
|
||||
dev_t min = 7;
|
||||
makedev(0, maj, min);
|
||||
dev_t dev;
|
||||
|
||||
dev = makedev(0, maj, min);
|
||||
if(major(dev) != maj || minor(dev) != min)
|
||||
exit(1);
|
||||
return 0;
|
||||
}
|
||||
")
|
||||
|
Loading…
Reference in New Issue
Block a user