SHARED_LIBRARY_SUFFIX is set by hand to prevent undefined behaviour

This commit is contained in:
Patrix
2022-06-13 17:33:37 +02:00
parent 35017f9527
commit daa7a84cf9
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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