mirror of
https://github.com/glest/glest-source.git
synced 2025-08-21 15:41:24 +02:00
Merge pull request #52 from filux/fpic-related-errors
merge after information that it's also required for Ubuntu 15.04+
This commit is contained in:
@@ -76,6 +76,12 @@ FOREACH(ver_var VER_MAJOR;VER_MINOR;VER_PATCH;MEGAGLEST_VERSION)
|
|||||||
ENDFOREACH()
|
ENDFOREACH()
|
||||||
MESSAGE(STATUS "Detected MegaGlest Version is [v${MEGAGLEST_VERSION}] ")
|
MESSAGE(STATUS "Detected MegaGlest Version is [v${MEGAGLEST_VERSION}] ")
|
||||||
|
|
||||||
|
SET(PIC_FLAG "${PIC_FLAG} -fPIC")
|
||||||
|
IF(WANT_STATIC_LIBS AND "${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
|
||||||
|
# CMAKE_SIZEOF_VOID_P=8 => 64bit
|
||||||
|
ADD_DEFINITIONS("${PIC_FLAG}")
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
## Compiler flags, CPACK configuration and other Apple specific code.
|
## Compiler flags, CPACK configuration and other Apple specific code.
|
||||||
IF(APPLE)
|
IF(APPLE)
|
||||||
include(${PROJECT_SOURCE_DIR}/mk/macosx/CMakeLists.txt)
|
include(${PROJECT_SOURCE_DIR}/mk/macosx/CMakeLists.txt)
|
||||||
|
Reference in New Issue
Block a user