Skip to content

Commit

Permalink
set include_directories only when needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
greg7mdp committed Oct 9, 2023
1 parent 623f4c0 commit 7e2b66c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
endif()

include_directories(${PROJECT_SOURCE_DIR})
if (PHMAP_BUILD_TESTS OR PHMAP_BUILD_EXAMPLES)
include_directories(${PROJECT_SOURCE_DIR})
endif()

if (PHMAP_BUILD_TESTS)

Expand Down

0 comments on commit 7e2b66c

Please sign in to comment.