Skip to content

Commit 66f5c75

Browse files
committed
debug
1 parent cb2e993 commit 66f5c75

File tree

1 file changed

+22
-11
lines changed

1 file changed

+22
-11
lines changed

cpp/cmake/IceConfig.cmake

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,28 @@ foreach(component ${Ice_FIND_COMPONENTS})
134134

135135
endforeach()
136136

137+
if(Ice_DEBUG)
138+
message(STATUS "Ice_VERSION: ${Ice_VERSION}")
139+
message(STATUS "Ice_HOME: ${Ice_HOME}")
140+
message(STATUS "Ice_SLICE2CPP_EXECUTABLE: ${Ice_SLICE2CPP_EXECUTABLE}")
141+
message(STATUS "Ice_SLICE_DIR directory: ${Ice_SLICE_DIR}")
142+
message(STATUS "Ice_INCLUDE_DIR: ${Ice_INCLUDE_DIR}")
143+
message(STATUS "Ice_INCLUDE_DIRS: ${Ice_INCLUDE_DIRS}")
144+
message(STATUS "Ice_INCLUDE_DIRS_RELEASE: ${Ice_INCLUDE_DIRS_RELEASE}")
145+
message(STATUS "Ice_INCLUDE_DIRS_DEBUG: ${Ice_INCLUDE_DIRS_DEBUG}")
146+
147+
foreach(component ${Ice_FIND_COMPONENTS})
148+
message(STATUS "Ice_${component}_LIBRARY: ${Ice_${component}_LIBRARY}")
149+
message(STATUS "Ice_${component}_LIBRARY_$<CONFIG>: ${Ice_${component}_LIBRARY_$<CONFIG>}")
150+
if(Ice_${component}_LIBRARY_RELEASE)
151+
message(STATUS "Ice_${component}_LIBRARY_RELEASE: ${Ice_${component}_LIBRARY_RELEASE}")
152+
endif()
153+
if(Ice_${component}_LIBRARY_DEBUG)
154+
message(STATUS "Ice_${component}_LIBRARY_DEBUG: ${Ice_${component}_LIBRARY_DEBUG}")
155+
endif()
156+
endforeach()
157+
endif()
158+
137159
# Use `find_package_handle_standard_args` for better error handling
138160
find_package_handle_standard_args(Ice
139161
REQUIRED_VARS Ice_HOME Ice_INCLUDE_DIRS Ice_SLICE2CPP_EXECUTABLE
@@ -186,14 +208,3 @@ function(slice2cpp_generate target)
186208
endif()
187209
endforeach()
188210
endfunction()
189-
190-
if(Ice_DEBUG)
191-
message(STATUS "Ice_VERSION: ${Ice_VERSION}")
192-
message(STATUS "Ice_HOME: ${Ice_HOME}")
193-
message(STATUS "Ice_SLICE2CPP_EXECUTABLE: ${Ice_SLICE2CPP_EXECUTABLE}")
194-
message(STATUS "Ice_SLICE_DIR directory: ${Ice_SLICE_DIR}")
195-
message(STATUS "Ice_INCLUDE_DIR: ${Ice_INCLUDE_DIR}")
196-
message(STATUS "Ice_INCLUDE_DIRS: ${Ice_INCLUDE_DIRS}")
197-
message(STATUS "Ice_INCLUDE_DIRS_RELEASE: ${Ice_INCLUDE_DIRS_RELEASE}")
198-
message(STATUS "Ice_INCLUDE_DIRS_DEBUG: ${Ice_INCLUDE_DIRS_DEBUG}")
199-
endif()

0 commit comments

Comments
 (0)