Hi Joshua,
your solution is a good workaround. Thanks.
This workd for me too:
IF (CMAKE_GENERATOR MATCHES "Visual Studio")
SET_TARGET_PROPERTIES(${TargetName} PROPERTIES PREFIX "../bin")
ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio")
Nevertheless I think my proposal makes sense anyway,
because it would work more like Visual Studio was intended for
and more like a CMake user would expect.
setting EXECUTABLE_OUTPUT_PATH should work without using
such workarounds.
Beside this I personly would prefer a path like
yourpath/bin/yourapp.exe
and not
yourpath/Debug/../bin/yourapp.exe ;-)
r as I understand, this is not possible with the current version of
CMake.
This has worked for me.
IF (CMAKE_GENERATOR MATCHES "Visual Studio")
SET_TARGET_PROPERTIES(${TargetName} PROPERTIES PREFIX "../")
SET_TARGET_PROPERTIES(${TargetName} PROPERTIES DEBUG_POSTFIX "-D")
ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio")
Josh
--
mit freundlichen Grüßen / best regards
*Gerhard Gappmeier*
ascolab GmbH - automation systems communication laboratory
Tel.: +49 9131 691 123
Fax: +49 9131 691 128
Web: http://www.ascolab.com
GPG-Key: http://www.ascolab.com/gpg/gg.asc
--
*ascolab GmbH*
Geschäftsführer: Gerhard Gappmeier, Matthias Damm, Uwe Steinkrauß
Sitz der Gesellschaft: Am Weichselgarten 7 • 91058 Erlangen • Germany
Registernummer: HRB 9360
Registergericht: Amtsgericht Fürth
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake