[CMake] CMAKE_INSTALL_PREFIX
John Drescher
drescherjm at gmail.com
Wed Mar 18 13:57:00 EDT 2009
> Here is what I do for Program Files
>
> string (REPLACE "\\" "/" PGM_FILES $ENV{PROGRAMFILES})
>
> then I use PGM_FILES and there is no complaint about bad escape sequences.
>
BTW, here is the whole section:
IF(WIN32)
#The following command changes \ to / in the Program Files Path so
CMake will not complain
#about bad escape sequences.
string (REPLACE "\\" "/" PGM_FILES $ENV{PROGRAMFILES})
SET (CMAKE_INSTALL_PREFIX ${PGM_FILES}/UPMC/${CMAKE_PROJECT_NAME}
CACHE STRING "Default Install Path" FORCE)
ENDIF(WIN32)
More information about the CMake
mailing list