Skip to content

Commit

Permalink
fixed: use PROJECT_SOURCE_DIR
Browse files Browse the repository at this point in the history
CMAKE_SOURCE_DIR does not point to the correct directory
for super build
  • Loading branch information
akva2 committed Aug 16, 2024
1 parent 457c803 commit 40fa6cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ macro (config_hook)
try_compile(
have_float_from_chars
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/cmake/test/testFloatFromChars.cpp
${PROJECT_SOURCE_DIR}/cmake/test/testFloatFromChars.cpp
CXX_STANDARD 17
)

Expand Down

0 comments on commit 40fa6cc

Please sign in to comment.