Created
June 7, 2022 12:56
-
-
Save v-atamanenko/e48d37a24be5726ec6e6547cd4205ce8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 7b32eb526b30d1034751c5b75b35a843eb00a15e | |
Author: v-atamanenko <[email protected]> | |
Date: Tue Jun 7 16:55:54 2022 +0400 | |
fix fpic | |
diff --git a/CMakeLists.txt b/CMakeLists.txt | |
index 2aa66421c..564ad0b0d 100644 | |
--- a/CMakeLists.txt | |
+++ b/CMakeLists.txt | |
@@ -258,7 +258,7 @@ ENDIF() | |
IF ((CMAKE_C_COMPILER_ID MATCHES "GNU") AND NOT MINGW) | |
IF(NOT ASSIMP_HUNTER_ENABLED) | |
SET(CMAKE_CXX_STANDARD 11) | |
- SET(CMAKE_POSITION_INDEPENDENT_CODE ON) | |
+ #SET(CMAKE_POSITION_INDEPENDENT_CODE ON) | |
ENDIF() | |
# hide all not-exported symbols | |
IF(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "mips64" ) | |
@@ -288,7 +288,7 @@ ELSEIF(MSVC) | |
ELSEIF (CMAKE_CXX_COMPILER_ID MATCHES "Clang" ) | |
IF(NOT ASSIMP_HUNTER_ENABLED) | |
SET(CMAKE_CXX_STANDARD 11) | |
- SET(CMAKE_POSITION_INDEPENDENT_CODE ON) | |
+ #SET(CMAKE_POSITION_INDEPENDENT_CODE ON) | |
ENDIF() | |
SET(CMAKE_CXX_FLAGS "-fvisibility=hidden -fno-strict-aliasing -Wall -Wno-long-long ${CMAKE_CXX_FLAGS}" ) | |
SET(CMAKE_C_FLAGS "-fno-strict-aliasing ${CMAKE_C_FLAGS}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment