Renamed cmake variable SHARED_LIBRARY_SUFFIX to OUT_FILE_SUFFIX

This commit is contained in:
Patrix
2022-10-28 01:30:14 +02:00
parent 05f26fcfdc
commit dc1f149552
7 changed files with 8 additions and 8 deletions

View File

@@ -29,11 +29,11 @@ target_include_directories(squirrel-template
add_subdirectory(dependencies) add_subdirectory(dependencies)
if(DEFINED SHARED_LIBRARY_SUFFIX) if(DEFINED OUT_FILE_SUFFIX)
set_target_properties(squirrel-template set_target_properties(squirrel-template
PROPERTIES PROPERTIES
PREFIX "" PREFIX ""
SUFFIX ".${SHARED_LIBRARY_SUFFIX}${CMAKE_SHARED_LIBRARY_SUFFIX}" SUFFIX ".${OUT_FILE_SUFFIX}${CMAKE_OUT_FILE_SUFFIX}"
) )
endif() endif()

View File

@@ -6,7 +6,7 @@ set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR arm) set(CMAKE_SYSTEM_PROCESSOR arm)
# specify shared library suffix # specify shared library suffix
set(SHARED_LIBRARY_SUFFIX "arm") set(OUT_FILE_SUFFIX "arm")
if (${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "arm.*") if (${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "arm.*")
# specify native compiler # specify native compiler

View File

@@ -6,7 +6,7 @@ set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR aarch64) set(CMAKE_SYSTEM_PROCESSOR aarch64)
# specify shared library suffix # specify shared library suffix
set(SHARED_LIBRARY_SUFFIX "arm64") set(OUT_FILE_SUFFIX "arm64")
if (${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "aarch64") if (${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "aarch64")
# specify native compiler # specify native compiler

View File

@@ -6,7 +6,7 @@ set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR x86_64) set(CMAKE_SYSTEM_PROCESSOR x86_64)
# specify shared library suffix # specify shared library suffix
set(SHARED_LIBRARY_SUFFIX "x64") set(OUT_FILE_SUFFIX "x64")
# specify the compilers # specify the compilers
set(CMAKE_C_COMPILER gcc) set(CMAKE_C_COMPILER gcc)

View File

@@ -6,7 +6,7 @@ set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR x86) set(CMAKE_SYSTEM_PROCESSOR x86)
# specify shared library suffix # specify shared library suffix
set(SHARED_LIBRARY_SUFFIX "x86") set(OUT_FILE_SUFFIX "x86")
# specify the compilers # specify the compilers
set(CMAKE_C_COMPILER gcc) set(CMAKE_C_COMPILER gcc)

View File

@@ -9,4 +9,4 @@ if (CMAKE_GENERATOR MATCHES "Visual Studio*")
endif() endif()
# specify shared library suffix # specify shared library suffix
set(SHARED_LIBRARY_SUFFIX "x64") set(OUT_FILE_SUFFIX "x64")

View File

@@ -9,4 +9,4 @@ if (CMAKE_GENERATOR MATCHES "Visual Studio*")
endif() endif()
# specify shared library suffix # specify shared library suffix
set(SHARED_LIBRARY_SUFFIX "x86") set(OUT_FILE_SUFFIX "x86")