Skip to content

Commit c1ba303

Browse files
committed
Trying to fix .tcc generation on mac
1 parent 255d2a9 commit c1ba303

1 file changed

Lines changed: 2 additions & 13 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
44
project(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..."

0 commit comments

Comments
 (0)