ENH: fix in source build for vs ide

This commit is contained in:
Bill Hoffman 2006-04-22 09:13:07 -04:00
parent 57c535a2cb
commit b663e221da
1 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,11 @@
PROJECT(hello Java) PROJECT(hello Java)
SET(CMAKE_VERBOSE_MAKEFILE 1) SET(CMAKE_VERBOSE_MAKEFILE 1)
SET(OLD_CUSTOM_COMMAND_WAY ) SET(OLD_CUSTOM_COMMAND_WAY )
message("${hello_SOURCE_DIR} STREQUAL ${hello_BINARY_DIR}")
IF("${hello_SOURCE_DIR}" STREQUAL "${hello_BINARY_DIR}")
SET(OLD_CUSTOM_COMMAND_WAY 1)
ENDIF("${hello_SOURCE_DIR}" STREQUAL "${hello_BINARY_DIR}")
IF(NOT OLD_CUSTOM_COMMAND_WAY) IF(NOT OLD_CUSTOM_COMMAND_WAY)
INCLUDE_DIRECTORIES(${hello_SOURCE_DIR} INCLUDE_DIRECTORIES(${hello_SOURCE_DIR}
${hello_BINARY_DIR} ) ${hello_BINARY_DIR} )