Skip to content

Commit cdfff90

Browse files
committed
feat: add release output directory to cmake variables
On windows files were put as projectRoot/Release/project.exe instead of projectRoot/project.exe
1 parent 7948415 commit cdfff90

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ctpm/build.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@ import (
1111
func Build(pc *config.ProjectConfig) error {
1212
cmakeVariables := map[string]string{
1313
"CMAKE_LIBRARY_OUTPUT_DIRECTORY": pc.ProjectRoot,
14+
"CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE": pc.ProjectRoot,
1415
"CMAKE_ARCHIVE_OUTPUT_DIRECTORY": pc.ProjectRoot,
16+
"CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE": pc.ProjectRoot,
1517
"CMAKE_RUNTIME_OUTPUT_DIRECTORY": pc.ProjectRoot,
18+
"CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE": pc.ProjectRoot,
1619
"CMAKE_INSTALL_PREFIX": filepath.ToSlash(filepath.Join(config.GlobalC3pmDirPath(), "cache", pc.Manifest.Name, pc.Manifest.Version.String())),
1720
"CMAKE_BUILD_TYPE": "Release",
1821
// Useful for Windows build

0 commit comments

Comments
 (0)