mirror of
https://gitee.com/an-tao/drogon.git
synced 2024-11-29 18:27:43 +08:00
parent
0168cd0574
commit
2919fdb7d4
@ -5,13 +5,13 @@ project(drogon)
|
||||
message(STATUS "compiler: " ${CMAKE_CXX_COMPILER_ID})
|
||||
include(CheckCXXSourceRuns)
|
||||
check_cxx_source_runs(
|
||||
${PROJECT_SOURCE_DIR}/cmake/tests/binary_compatibility_test.cc
|
||||
cross_compiling)
|
||||
"int main(){return 0;}"
|
||||
not_cross_compiling)
|
||||
|
||||
if(cross_compiling)
|
||||
set(BUILD_PROGRAMS OFF)
|
||||
else(cross_compiling)
|
||||
if(not_cross_compiling)
|
||||
set(BUILD_PROGRAMS ON)
|
||||
else()
|
||||
set(BUILD_PROGRAMS OFF)
|
||||
endif()
|
||||
|
||||
option(BUILD_CTL "Build drogon_ctl" ${BUILD_PROGRAMS})
|
||||
|
@ -1,4 +0,0 @@
|
||||
#include <algorithm>
|
||||
int main(){
|
||||
return std::abs(-42);
|
||||
}
|
Loading…
Reference in New Issue
Block a user