[Liblas-commits] hg: [cmake] Generate custom dot-user file added in
last commit w...
liblas-commits at liblas.org
liblas-commits at liblas.org
Tue Sep 29 16:15:07 EDT 2009
changeset 14545ee77420 in /home/www/liblas.org/hg
details: http://hg.liblas.org/main/hg?cmd=changeset;node=14545ee77420
summary: [cmake] Generate custom dot-user file added in last commit when building with Visual Studio only (#52).
diffstat:
apps/CMakeLists.txt | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diffs (24 lines):
diff -r e7c73ce07e62 -r 14545ee77420 apps/CMakeLists.txt
--- a/apps/CMakeLists.txt Tue Sep 29 20:33:20 2009 +0100
+++ b/apps/CMakeLists.txt Tue Sep 29 21:14:56 2009 +0100
@@ -42,12 +42,14 @@
SET(VCPROJ_USER_REMOTE_MACHINE_DEBUG ${MACHINE_NAME})
SET(VCPROJ_USER_ENVIRONMENT_DEBUG "${ENVIRONMENT_PATH}")
-FOREACH(utility ${LIBLAS_UTILITIES})
- SET(USER_FILE ${utility}.vcproj.$ENV{USERDOMAIN}.$ENV{USERNAME}.user)
- SET(OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/${USER_FILE})
- MESSAGE(STATUS "Generating ${CMAKE_GENERATOR} user-specific settings in ${USER_FILE}")
- CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/build/cmake/libLAS.vcproj.user.template ${OUTPUT_PATH} @ONLY)
-ENDFOREACH()
+IF(MSVC)
+ FOREACH(utility ${LIBLAS_UTILITIES})
+ SET(USER_FILE ${utility}.vcproj.$ENV{USERDOMAIN}.$ENV{USERNAME}.user)
+ SET(OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/${USER_FILE})
+ MESSAGE(STATUS "Generating ${CMAKE_GENERATOR} user-specific settings in ${USER_FILE}")
+ CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/build/cmake/libLAS.vcproj.user.template ${OUTPUT_PATH} @ONLY)
+ ENDFOREACH()
+ENDIF()
###############################################################################
# Configure build targets
More information about the Liblas-commits
mailing list