SHARED_LIBRARY_SUFFIX is set by hand to prevent undefined behaviour
This commit is contained in:
@@ -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 ${CMAKE_SYSTEM_PROCESSOR})
|
set(SHARED_LIBRARY_SUFFIX "arm")
|
||||||
|
|
||||||
if (${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "arm.*")
|
if (${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "arm.*")
|
||||||
# specify native compiler
|
# specify native compiler
|
||||||
|
|||||||
@@ -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 ${CMAKE_SYSTEM_PROCESSOR})
|
set(SHARED_LIBRARY_SUFFIX "x86")
|
||||||
|
|
||||||
# specify the compilers
|
# specify the compilers
|
||||||
set(CMAKE_C_COMPILER gcc)
|
set(CMAKE_C_COMPILER gcc)
|
||||||
|
|||||||
@@ -9,4 +9,4 @@ if (CMAKE_GENERATOR MATCHES "Visual Studio*")
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# specify shared library suffix
|
# specify shared library suffix
|
||||||
set(SHARED_LIBRARY_SUFFIX ${CMAKE_GENERATOR_PLATFORM})
|
set(SHARED_LIBRARY_SUFFIX "x64")
|
||||||
|
|||||||
Reference in New Issue
Block a user