Skip to content

Commit

Permalink
Use lowercase name corsix-th on unix.
Browse files Browse the repository at this point in the history
Apple still uses the same name, but on other UNIX systems the all
lowercase name is preferred.
  • Loading branch information
TheCycoONE committed Feb 9, 2018
1 parent a58814c commit 9e2409e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -97,3 +97,4 @@ CorsixTH/CorsixTH.sln

# Default build path
CorsixTH/CorsixTH
CorsixTH/corsix-th
6 changes: 5 additions & 1 deletion CorsixTH/CMakeLists.txt
Expand Up @@ -76,6 +76,10 @@ else()
add_executable(CorsixTH ${corsixth_source_files})
endif()

if(UNIX AND NOT APPLE)
set_target_properties(CorsixTH PROPERTIES OUTPUT_NAME corsix-th)
endif()

# Add an extra step to copy built DLLs on MSVC
if(USE_VCPKG_DEPS)
include(CopyVcpkgLua)
Expand Down Expand Up @@ -196,7 +200,7 @@ endif()

# Launch script to facilitate out of source builds on Linux
if(UNIX)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/run-corsixth-dev.sh.in ${CMAKE_CURRENT_BINARY_DIR}/run-corsixth-dev.sh @ONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/run-corsix-th-dev.sh.in ${CMAKE_CURRENT_BINARY_DIR}/run-corsixth-dev.sh @ONLY)
elseif(MSVC)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/CorsixTH.vcxproj.user.in ${CMAKE_CURRENT_BINARY_DIR}/CorsixTH.vcxproj.user @ONLY)
endif()
Expand Down
3 changes: 3 additions & 0 deletions CorsixTH/run-corsix-th-dev.sh.in
@@ -0,0 +1,3 @@
#!/bin/sh

"@CMAKE_CURRENT_BINARY_DIR@/corsix-th" --interpreter="@CMAKE_SOURCE_DIR@/CorsixTH/CorsixTH.lua" $@
3 changes: 0 additions & 3 deletions CorsixTH/run-corsixth-dev.sh.in

This file was deleted.

0 comments on commit 9e2409e

Please sign in to comment.