Browse Source

Fixed cmake error: No known features for C compiler when using the assimp library from another project.

rumgot 3 years ago
parent
commit
92aef9236f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      code/CMakeLists.txt

+ 1 - 1
code/CMakeLists.txt

@@ -1172,7 +1172,7 @@ ELSE()
 ENDIF()
 ENDIF()
 
 
 # adds C_FLAGS required to compile zip.c on old GCC 4.x compiler
 # adds C_FLAGS required to compile zip.c on old GCC 4.x compiler
-TARGET_COMPILE_FEATURES(assimp PUBLIC c_std_99)
+TARGET_COMPILE_FEATURES(assimp PRIVATE c_std_99)
 
 
 TARGET_INCLUDE_DIRECTORIES ( assimp PUBLIC
 TARGET_INCLUDE_DIRECTORIES ( assimp PUBLIC
   $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>
   $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>