Re: [CMake] Workaround for CMP0026

2015-02-05 Thread Stephen Kelly
NoRulez wrote: > Thank you for your help. > > I think that for the replacement there is some missing documentation > outstanding, because i didn't find the "TYPE" attribute in the "file" > function for example. I copied and modifier the content from a generated cmake_install.cmake script. The

Re: [CMake] Workaround for CMP0026

2015-02-05 Thread NoRulez
Thank you for your help. I think that for the replacement there is some missing documentation outstanding, because i didn't find the "TYPE" attribute in the "file" function for example. Or examples for the CMP0026 policy like in the CMP0043 documentation. Nevertheless, I also need to change th

Re: [CMake] Workaround for CMP0026

2015-02-04 Thread Stephen Kelly
NoRulez wrote: > Hello, > > currently I'm updating my CMake scripts to use newer features and/or to > solve some old workarounds. I think you're looking for file(GENERATE OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/dirInstallScript.cmake" CONTENT " if (CMAKE_INSTALL_CONFIG_NAME STREQUA

[CMake] Workaround for CMP0026

2015-02-04 Thread NoRulez
Hello, currently I'm updating my CMake scripts to use newer features and/or to solve some old workarounds. I have the following code: get_target_property(${PROJECT_NAME}OutputDirectory ${PROJECT_NAME} LOCATION_RELEASE) get_filename_component(${PROJECT_NAME}OutputDirectory ${${PROJECT_NAM