File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.16.0 FATAL_ERROR )
1+ cmake_minimum_required (VERSION 3.20 FATAL_ERROR )
22
33# Set the project version and language
44project (Ghostship VERSION 1.0.2 LANGUAGES C CXX ASM )
@@ -705,18 +705,7 @@ if (MSVC)
705705 COMMAND "${CMAKE_BINARY_DIR } /_deps/tinycc-src/win32/tcc.exe" -impdef "$<TARGET_FILE :Ghostship >" -o "$<TARGET_FILE_DIR :Ghostship >/.tcc/lib/Ghostship.def"
706706 VERBATIM
707707 )
708- elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux" )
709- add_custom_command (
710- TARGET ${PROJECT_NAME } POST_BUILD
711- COMMENT "Copying libtcc headers and libs..."
712- COMMAND ${CMAKE_COMMAND } -E make_directory "$<TARGET_FILE_DIR :Ghostship >/.tcc/"
713- COMMAND ${CMAKE_COMMAND } -E make_directory "$<TARGET_FILE_DIR :Ghostship >/.tcc/lib/"
714- COMMAND ${CMAKE_COMMAND } -E make_directory "$<TARGET_FILE_DIR :Ghostship >/.tcc/include/"
715- COMMAND ${CMAKE_COMMAND } -E copy_directory "${CMAKE_BINARY_DIR } /_deps/tinycc-src/include/" "$<TARGET_FILE_DIR :Ghostship >/.tcc/include/"
716- COMMAND ${CMAKE_COMMAND } -E copy "$<TARGET_FILE :libtcc1 >" "$<TARGET_FILE_DIR :Ghostship >/.tcc/lib/libtcc1.a"
717- VERBATIM
718- )
719- elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin" )
708+ else ()
720709 add_custom_command (
721710 TARGET ${PROJECT_NAME } POST_BUILD
722711 COMMENT "Copying libtcc headers and libs..."
You can’t perform that action at this time.
0 commit comments