diff --git a/CMakeLists.txt b/CMakeLists.txt index 5a7747cfa..1b46fce36 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,8 +22,8 @@ SET( BIN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH "Path the tool executables are installed to." ) # Generate a pkg-config .pc for the Assimp library. -CONFIGURE_FILE( "${CMAKE_SOURCE_DIR}/assimp.pc.in" "${CMAKE_BINARY_DIR}/assimp.pc" @ONLY ) -INSTALL( FILES "${CMAKE_BINARY_DIR}/assimp.pc" DESTINATION ${LIB_INSTALL_DIR}/pkgconfig/ ) +CONFIGURE_FILE( "${PROJECT_SOURCE_DIR}/assimp.pc.in" "${PROJECT_BINARY_DIR}/assimp.pc" @ONLY ) +INSTALL( FILES "${PROJECT_BINARY_DIR}/assimp.pc" DESTINATION ${LIB_INSTALL_DIR}/pkgconfig/ ) # Globally enbale Boost resp. the Boost workaround – it is also needed by the # tools which include the Assimp headers. diff --git a/code/Q3BSPFileImporter.cpp b/code/Q3BSPFileImporter.cpp index 3a339e10e..9a0a37a6a 100644 --- a/code/Q3BSPFileImporter.cpp +++ b/code/Q3BSPFileImporter.cpp @@ -62,10 +62,10 @@ namespace Assimp using namespace Q3BSP; -static const std::string Q3BSPExtention = "pk3"; +static const std::string Q3BSPExtension = "pk3"; // ------------------------------------------------------------------------------------------------ -// Local fnction to create a material keyname. +// Local function to create a material key name. static void createKey( int id1, int id2, std::string &rKey ) { std::stringstream str;