Advertisement Jump to content
Sign in to follow this  
Alundra

RelWithDebInfo output directory

This topic is 1793 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all,

I use CMake to generate the project, all works fine but when I compile using RelWithDebInfo I don't have the good output dir.

Here is the script I use to set the output directories :

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_CURRENT_SOURCE_DIR}/bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_CURRENT_SOURCE_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG ${CMAKE_CURRENT_SOURCE_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE ${CMAKE_CURRENT_SOURCE_DIR}/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${CMAKE_CURRENT_SOURCE_DIR}/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${CMAKE_CURRENT_SOURCE_DIR}/lib)
set(CMAKE_DEBUG_POSTFIX "_Debug")

 

 

As you can see, what I want is to output the lib into "lib/".
This issue only happen on RelWithDebInfo, on Debug and Release no problem.
Thanks for the help

Share this post


Link to post
Share on other sites
Advertisement

Have you tried something like CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELWITHDEBINFO? I don't have CMake available right now so I can't test it, but I found a couple of projects on github that use it.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!