Skip to content

Commit

Permalink
Wrap include path in quotes
Browse files Browse the repository at this point in the history
Co-authored-by: Sam Clark <[email protected]>
  • Loading branch information
camshaft and goatgoose authored Aug 28, 2024
1 parent ba9cd03 commit 51411b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ if(S2N_BLOCK_NONPORTABLE_OPTIMIZATIONS)
endif()

target_compile_options(${PROJECT_NAME} PUBLIC -fPIC)
target_compile_options(${PROJECT_NAME} PRIVATE -include ${CMAKE_CURRENT_LIST_DIR}/utils/s2n_prelude.h)
target_compile_options(${PROJECT_NAME} PRIVATE -include "${CMAKE_CURRENT_LIST_DIR}/utils/s2n_prelude.h")

# Match on Release, RelWithDebInfo and MinSizeRel
# See: https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html#variable:CMAKE_BUILD_TYPE
Expand Down Expand Up @@ -451,7 +451,7 @@ if (BUILD_TESTING)

add_library(testss2n STATIC ${TESTLIB_HEADERS} ${TESTLIB_SRC} ${EXAMPLES_SRC})
target_include_directories(testss2n PUBLIC tests)
target_compile_options(testss2n PRIVATE -std=gnu99 -include ${CMAKE_CURRENT_LIST_DIR}/utils/s2n_prelude.h)
target_compile_options(testss2n PRIVATE -std=gnu99 -include "${CMAKE_CURRENT_LIST_DIR}/utils/s2n_prelude.h")
target_link_libraries(testss2n PUBLIC ${PROJECT_NAME})

if (S2N_INTERN_LIBCRYPTO)
Expand Down

0 comments on commit 51411b8

Please sign in to comment.