[CMake] Some issues with visual studio
Renato Utsch
renatoutsch at gmail.com
Sun Jan 8 18:08:46 EST 2012
CLIFFORD MAN, IT WORKED!
This was everything I was looking for. Thanks:
# Configure the release changes (optimization)
set( CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" )
foreach( CONF_TYPE ${CMAKE_CONFIGURATION_TYPES} )
string( TOUPPER "${CONF_TYPE}" CONF_TYPE )
set( CMAKE_RUNTIME_OUTPUT_DIRECTORY_${CONF_TYPE}
"${CMAKE_BINARY_DIR}" )
endforeach()
Now is only the problem from the default to be "Release" or
"RelMinSize", I don't know if the problem is with CMake, but I think
that when setting CMAKE_BUILD_TYPE to "ReMinSize" it should set the
standard to it. Sad it doesn't do that :(
So, anyone knows any other way? Like the variable that cmake sets when
using --config Release when calling it from the command line ?
Renato
2012/1/8 Renato Utsch <renatoutsch at gmail.com>:
> CLIFFORD MAN, IT WORKED!
>
> This was everything I was looking for. Thanks:
>
> # Configure the release changes (optimization)
> set( CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" )
>
> foreach( CONF_TYPE ${CMAKE_CONFIGURATION_TYPES} )
> string( TOUPPER "${CONF_TYPE}" CONF_TYPE )
> set( CMAKE_RUNTIME_OUTPUT_DIRECTORY_${CONF_TYPE} "${CMAKE_BINARY_DIR}" )
> endforeach()
>
> Now is only the problem from the default to be "Release" or
> "RelMinSize", I don't know if the problem is with CMake, but I think
> that when setting CMAKE_BUILD_TYPE to "ReMinSize" it should set the
> standard to it. Sad it doesn't do that :(
>
> So, anyone knows any other way? Like the variable that cmake sets when
> using --config Release when calling it from the command line ?
>
> Renato
>
> 2012/1/8 Clifford Yapp <cliffyapp at gmail.com>:
>> Hmm - that looks interesting. I didn't know about
>> SUPPORTS_PARALLEL_BUILD_TYPE - I'll have to review my setup with that
>> in mind.
>>
>> Thanks!
>>
>> On Sun, Jan 8, 2012 at 4:52 PM, J Decker <d3ck0r at gmail.com> wrote:
>>
>>> if( SUPPORTS_PARALLEL_BUILD_TYPE ) # will be set in visual
>>> studio type projects...
>>> INSTALL( FILES ... DESTINATION ...${CMAKE_INSTALL_CONFIG_NAME}
>>> ... ) #CMAKE_INSTALL_CONFIG_NAME will be set for the build type you're
>>> doing.
>> --
>>
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.cmake.org/mailman/listinfo/cmake
More information about the CMake
mailing list