Skip to content

Commit

Permalink
replace CMAKE_SOURCE_DIR with PROJECT_SOURCE_DIR (fcitx#912)
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleoflqj authored Dec 8, 2023
1 parent efd23ce commit be9fbce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,6 @@ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/Fcitx5UtilsConfig.cmake"
Fcitx5Macros.cmake
Fcitx5Download.cmake.in
Fcitx5ModuleTemplate.cmake.in
"${CMAKE_SOURCE_DIR}/cmake/Fcitx5CompilerSettings.cmake"
"${PROJECT_SOURCE_DIR}/cmake/Fcitx5CompilerSettings.cmake"
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/Fcitx5Utils
COMPONENT Devel )
2 changes: 1 addition & 1 deletion test/testdir.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifndef _TEST_TESTDIR_H_
#define _TEST_TESTDIR_H_

#define FCITX5_SOURCE_DIR "@CMAKE_SOURCE_DIR@"
#define FCITX5_SOURCE_DIR "@PROJECT_SOURCE_DIR@"
#define FCITX5_BINARY_DIR "@CMAKE_BINARY_DIR@"

#endif // _TEST_TESTDIR_H_

0 comments on commit be9fbce

Please sign in to comment.