From 92aef9236fc58277b2b6e6639e160e7cf7eeb4b2 Mon Sep 17 00:00:00 2001 From: rumgot Date: Tue, 14 Dec 2021 23:54:36 +0300 Subject: [PATCH] Fixed cmake error: No known features for C compiler when using the assimp library from another project. --- code/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt index e45bf8a2a..1af9407d2 100644 --- a/code/CMakeLists.txt +++ b/code/CMakeLists.txt @@ -1172,7 +1172,7 @@ ELSE() ENDIF() # 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 $