Jump to content

  • Log In with Google      Sign In   
  • Create Account

RelWithDebInfo output directory

  • You cannot reply to this topic
1 reply to this topic

#1 Alundra   Members   -  Reputation: 865

Like
0Likes
Like

Posted 27 January 2014 - 11:39 AM

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


Sponsor:

#2 Jan2go   Members   -  Reputation: 793

Like
0Likes
Like

Posted 25 February 2014 - 08:47 AM

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.







PARTNERS