mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-10-30 16:27:36 +08:00
使用统一的编译参数
This commit is contained in:
parent
0fc38bbadb
commit
ac378eaaf1
@ -36,15 +36,13 @@ foreach(TEST_SRC ${TEST_SRC_LIST})
|
||||
|
||||
message(STATUS "add test: ${TEST_EXE_NAME}")
|
||||
add_executable(${TEST_EXE_NAME} ${TEST_SRC})
|
||||
target_compile_options(${TEST_EXE_NAME}
|
||||
PRIVATE ${COMPILE_OPTIONS_DEFAULT})
|
||||
|
||||
if(USE_SOLUTION_FOLDERS)
|
||||
SET_PROPERTY(TARGET ${TEST_EXE_NAME} PROPERTY FOLDER "test")
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
set_target_properties(${TEST_EXE_NAME} PROPERTIES COMPILE_FLAGS ${VS_FALGS})
|
||||
endif()
|
||||
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
target_link_libraries(${TEST_EXE_NAME} -Wl,--start-group ${MK_LINK_LIBRARIES} -Wl,--end-group)
|
||||
else()
|
||||
|
Loading…
Reference in New Issue
Block a user