summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2012-01-03 18:54:43 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2012-01-16 19:27:40 (GMT)
commit813eca64160509465c0e557aa98c9b0f828e47a9 (patch)
treeeb75fba2beee4f070734f599b130f02ef497435d /CMakeLists.txt
parent9a20abf04a7fc11b53beb545f1555fe9815ae09c (diff)
downloadCMake-813eca64160509465c0e557aa98c9b0f828e47a9.zip
CMake-813eca64160509465c0e557aa98c9b0f828e47a9.tar.gz
CMake-813eca64160509465c0e557aa98c9b0f828e47a9.tar.bz2
CheckSymbolExists: force the compiler to keep the referenced symbol
Otherwise the compiler may optimize out the reference to the symbol as the previous version was not really using this. This leads to symbols that are only in a header but not in the given libraries to be reported as present. This came up on the first try to fix bug 11333 as "gcc -O3" would optimize out the reference to pthread_create() so the correct library the symbol is in was not detected. The new test code was suggested by Brad King.
Diffstat (limited to 'CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions