Bug #2036 make sure find_standard_math_library_test_program actually compiles (and is guaranteed to call math functions)
This commit is contained in:
		
							parent
							
								
									09f595a269
								
							
						
					
					
						commit
						ecb7bc9514
					
				| @ -24,10 +24,8 @@ include(CheckCXXSourceCompiles) | ||||
| set(find_standard_math_library_test_program | ||||
| " | ||||
| #include<cmath> | ||||
| int main(int argc, char **argv) { | ||||
|   (void)std::sin(argc)); | ||||
|   (void)std::log(argc)); | ||||
|   return 0; | ||||
| int main(int argc, char **){ | ||||
|   return int(std::sin(double(argc)) + std::log(double(argc))); | ||||
| }") | ||||
| 
 | ||||
| # first try compiling/linking the test program without any linker flags | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Christoph Hertzberg
						Christoph Hertzberg