ClickHouse/cmake/test_compiler.cmake

12 lines
206 B
CMake
Raw Normal View History

2017-01-30 13:40:04 +00:00
include (CheckCXXSourceCompiles)
set (TEST_FLAG "--no-pie")
set (CMAKE_REQUIRED_FLAGS "${TEST_FLAG}")
check_cxx_source_compiles("
int main() {
return 0;
}
" HAVE_NO_PIE)
set (CMAKE_REQUIRED_FLAGS "")