ams-tschoening commented on a change in pull request #63:
URL: https://github.com/apache/logging-log4cxx/pull/63#discussion_r615231666



##########
File path: CMakeLists.txt
##########
@@ -3,6 +3,11 @@ include(src/cmake/projectVersionDetails.cmake)
 project(log4cxx VERSION ${log4cxx_VER} LANGUAGES CXX)
 include(CTest)
 
+# If you are including log4cxx from a higher-level CMake file(perhaps as a 
submodule?)
+# CMAKE_SOURCE_DIR will refer to the first CMakeLists.txt.  Since we need some 
files
+# in relation to the log4cxx source root, set a variable that contains the 
log4cxx root.
+set(LOG4CXX_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")

Review comment:
       The current implementation doesn't make that variable available in the 
GUI of Visual Studio:
   
   
![Bild_2021-04-17_111115](https://user-images.githubusercontent.com/6223655/115107849-a0070b80-9f6d-11eb-87f3-3deb8fbfcd82.png)
   
   Changing that to the following line instead does and that approach is used 
for some other variables like e.g. `LOG4CXX_TEST_PROGRAM_PATH` as well.
   
       set(LOG4CXX_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}" CACHE PATH "Source 
root of log4cxx")
       set( LOG4CXX_TEST_PROGRAM_PATH "" CACHE PATH "Extra path for test 
programs" )
   
   
![Bild_2021-04-17_111654](https://user-images.githubusercontent.com/6223655/115108014-6a165700-9f6e-11eb-9378-a3f66ce6a7d5.png)
   
   As this option is pretty important, shouldn't it be made as prominent as 
possible for people wanting to customize it?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to