diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt index bc6bef36af9..66cbce47b92 100644 --- a/crypto/CMakeLists.txt +++ b/crypto/CMakeLists.txt @@ -314,6 +314,8 @@ if(GO_EXECUTABLE) else() file(COPY ${GENERATE_CODE_ROOT}/err_data.c DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/) endif() + +# We need to create a object library off of the generated err_data.c in so we can mark it as a dependency for our C inject hash implementation if(FIPS) add_library(generated_err_data OBJECT err_data.c) target_include_directories(generated_err_data PRIVATE ${PROJECT_SOURCE_DIR}/include) @@ -659,7 +661,7 @@ if(FIPS_SHARED) # the hash directly into the final library. build_libcrypto(crypto $) if (APPLE) - # Add subdirectory that handles building a non-FIPS library to use in inject_hash + # Add subdirectory that handles building a stripped-down version of AWS-LC for use in calculating and injecting the FIPS integrity hash add_subdirectory(fips_hashing) add_subdirectory(${PROJECT_SOURCE_DIR}/util/fipstools/inject_hash inject_hash) diff --git a/crypto/fips_hashing/CMakeLists.txt b/crypto/fips_hashing/CMakeLists.txt index 02a1ea6b7b2..b826dc69ae5 100644 --- a/crypto/fips_hashing/CMakeLists.txt +++ b/crypto/fips_hashing/CMakeLists.txt @@ -20,4 +20,4 @@ if(FIPS AND APPLE) SET_TARGET_PROPERTIES(fips_hashing PROPERTIES LINKER_LANGUAGE C) target_include_directories(fips_hashing PUBLIC $) -endif() \ No newline at end of file +endif()