mirror of
https://github.com/sstefani/mtrace.git
synced 2025-12-06 16:56:41 +08:00
cleanup cmake
This commit is contained in:
parent
c6c446f1c2
commit
6f097d37e6
@ -17,7 +17,6 @@ include(CheckFunctionExists)
|
|||||||
include(CheckIncludeFile)
|
include(CheckIncludeFile)
|
||||||
include(CheckIncludeFiles)
|
include(CheckIncludeFiles)
|
||||||
include(CheckSymbolExists)
|
include(CheckSymbolExists)
|
||||||
#include(CheckIPOSupported)
|
|
||||||
|
|
||||||
include(${CMAKE_SOURCE_DIR}/Utilities.cmake)
|
include(${CMAKE_SOURCE_DIR}/Utilities.cmake)
|
||||||
|
|
||||||
@ -53,11 +52,6 @@ set(CMAKE_EXE_LINKER_FLAGS_LTO "${CMAKE_LINKER_FLAGS_RELEASE} -flto")
|
|||||||
|
|
||||||
add_compile_options(-Wall -Wextra -Werror -Werror -Wno-implicit-fallthrough)
|
add_compile_options(-Wall -Wextra -Werror -Werror -Wno-implicit-fallthrough)
|
||||||
|
|
||||||
#check_ipo_supported(RESULT IPO)
|
|
||||||
#if (IPO)
|
|
||||||
# set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
|
|
||||||
#endif()
|
|
||||||
|
|
||||||
if (NOT DISABLE_CLIENT)
|
if (NOT DISABLE_CLIENT)
|
||||||
SET(C_SRCS
|
SET(C_SRCS
|
||||||
${C_SRCS}
|
${C_SRCS}
|
||||||
@ -78,7 +72,7 @@ target_architecture(TARGET_ARCH)
|
|||||||
if (TARGET_ARCH)
|
if (TARGET_ARCH)
|
||||||
message(STATUS "target architecture is ${TARGET_ARCH}")
|
message(STATUS "target architecture is ${TARGET_ARCH}")
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "unknow target architecture")
|
message(FATAL_ERROR "unknown target architecture")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (TARGET_ARCH MATCHES "x86|x86_64")
|
if (TARGET_ARCH MATCHES "x86|x86_64")
|
||||||
@ -95,7 +89,7 @@ target_os(TARGET_OS)
|
|||||||
if (TARGET_OS)
|
if (TARGET_OS)
|
||||||
message(STATUS "target OS is ${TARGET_OS}")
|
message(STATUS "target OS is ${TARGET_OS}")
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "unknow target OS: ${TARGET_OS}")
|
message(FATAL_ERROR "unknown target OS: ${TARGET_OS}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (TARGET_OS STREQUAL "linux")
|
if (TARGET_OS STREQUAL "linux")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user