diff --git a/oving5/CMakeLists.txt b/oving5/CMakeLists.txt index a07b7e4..af2ffa0 100644 --- a/oving5/CMakeLists.txt +++ b/oving5/CMakeLists.txt @@ -4,10 +4,10 @@ project(c C) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11 -Wall -Wextra") add_library(format_string STATIC format_string.c) -target_include_directories(format_string INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}) +target_include_directories(format_string PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) add_executable(c main.c) -target_link_libraries(c PRIVATE format_string) # Use PRIVATE here +target_link_libraries(c PRIVATE format_string) enable_testing() add_subdirectory(tests)