mirror of
https://github.com/threeal/cmake-action.git
synced 2025-04-21 02:51:21 +00:00
remove option to build txt in the test project
This commit is contained in:
parent
44d52623ce
commit
809b703d05
@ -3,7 +3,6 @@ project(test)
|
||||
|
||||
option(BUILD_C "build hello world in C Language" OFF)
|
||||
option(BUILD_CXX "build hello world in CXX Language" ON)
|
||||
option(BUILD_TXT "build hello world txt file" OFF)
|
||||
|
||||
if(BUILD_C)
|
||||
add_executable(hello_world_c hello_world.c)
|
||||
@ -12,10 +11,3 @@ endif()
|
||||
if(BUILD_CXX)
|
||||
add_executable(hello_world hello_world.cpp)
|
||||
endif()
|
||||
|
||||
if(BUILD_TXT)
|
||||
add_custom_target(
|
||||
hello_world_txt ALL
|
||||
COMMAND echo "Hello world!" >> ${CMAKE_CURRENT_BINARY_DIR}/hello_world.txt
|
||||
)
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user